Quantcast
Channel: CodeGuru Forums - Visual C++ Programming
Browsing all 3046 articles
Browse latest View live

twain driver

hi, Got a data acquisition box with driver binary and source which is visual studio project. Liked to develop a twain driver SDK for it. I can control the box using set of DevControl export functions...

View Article


How to add a button in win32 app

Hi, this is my first win32 program and I'm making changes while I learn. I have a win32 window that needs functionality and I started looking into how to add buttons to your win32 program from here,...

View Article


Linker warning

I wrote some code that was given to me to learn from and while I built the program I saw this in the status window of Visual C++ 2022 Code: warning LNK4075: ignoring '/EDITANDCONTINUE' due to...

View Article

[RESOLVED] Linker warning

I wrote some code that was given to me to learn from and while I built the program I saw this in the status window of Visual C++ 2022 Code: warning LNK4075: ignoring '/EDITANDCONTINUE' due to...

View Article

msoftcon.h error

I'm trying to build this project from a lecture but ran into a problem. The code I wrote requires me to add msoftcon.cpp and msoftcon.h to the project and I received an error trying to build it. Code:...

View Article


[RESOLVED] msoftcon.h error

I'm trying to build this project from a lecture but ran into a problem. The code I wrote requires me to add msoftcon.cpp and msoftcon.h to the project and I received an error trying to build it. Code:...

View Article

A replacement for std::tmpnam() ?

IIUC std::tmpnam() creates a filename that's guaranteed to be unique - but without creating an actual file (i.e. it returns a name that you could use if you wanted to...) But (again IIUC) it only ever...

View Article

Introducing the NKTg Law: A Simulation of Variable Inertia in C

Hello everyone, I?d like to share a new conceptual physics law called the NKTg Law, which introduces a modified understanding of inertia where mass is no longer considered constant over time. This idea...

View Article


change a field name in a table in MS Access from C++/MFC

I want to change a field name in a table in MS Access from C++/MFC. There's no direct way to do this in Visual Studio (RENAME in ALTER TABLE doesn't work when running in MDB), but it's easy in VB. The...

View Article


Adding libpcap to project

Hi, I'm following a tutorial about 10 years old and I'm running into trouble compiling this source. Code: /*  * Copyright (c) 1999 - 2005 NetHero, cYbrex Inc (Chicago)  * Copyright (c) 2005 - 2006 CARS...

View Article

compiling npcap tutorial code

I can't seem to get this code snippet to compile.. Code: int main() {     pcap_if_t* alldevs;     pcap_if_t* d;     int i = 0;     char errbuf[PCAP_ERRBUF_SIZE];     /* Retrieve the device list from...

View Article

[RESOLVED] Messages can't get to a CWnd

Hello! I'm trying to do a page navigator class, derived from CWnd, wich contains a list of CWnd pointers, shows only the current page and makes sure it resizes correctly. However setting the WS_CHILD...

View Article

Build errors

Hello. I'm trying to build a packet sniffer from here. I got about 5 errors when trying to build this source code. Code: 'local->h_addr_list[in]' could be '0':  this does not adhere to the...

View Article


Preventing console window from closing on Visual Studio C/C++ Console...

Hello, I've been using Visual Studio for years, but this is my first time developing a 'Console Application.' When I run my application, the console window opens, displays the program output, and then...

View Article

multithreading and chdir

Hello, Im going through a code, where, it seems the issue is due to the way threading implemented. I just know basics of threading I am trying to understand the affects of multithreading on chdir, and...

View Article


SFML errors

Hi, trying to build this sample code to test SFML for coding a simple racing game but running into errors. Code: #include <SFML/Graphics.hpp> int main() {     sf::RenderWindow...

View Article

Is there anyone here using Microsoft's vcpkg ?

On a different forum I've been involved in a discussion about Microsoft's vcpkg (which I've never used). I'm running VS2022 here and it looks like vcpkg is installed as part of Visual Studio. But...

View Article


Static linker error

I'm trying to statically link .dll files from SFML library so that I don't need to launch my program relying on the given .dll files. I added SFML_STATIC to the preprocessor section in the project...

View Article

[RESOLVED] Static linker error

I'm trying to statically link .dll files from SFML library so that I don't need to launch my program relying on the given .dll files. I added SFML_STATIC to the preprocessor section in the project...

View Article

[RESOLVED] Preventing console window from closing on Visual Studio C/C++...

Hello, I've been using Visual Studio for years, but this is my first time developing a 'Console Application.' When I run my application, the console window opens, displays the program output, and then...

View Article
Browsing all 3046 articles
Browse latest View live