I have a PC with allo the dev tools from microsoft.
I wrote some changes to the software(in VC++ ,MFC) that my company has and didn't have any problems on my PC(with WINNT) but when other users in the company tryed using the software on winnt they got Dr Watson.
I tryed the tool DRWTSN32 and...
I have a dll project in visual c++
and I want to have a variable which will change by different exe files which use this dll.
for example if i have
"int i=0; //global var of the dll file
.....
int func
{
if (....)
i++;
}
"
I would like i to be 1 for the next time func is...
I have the following struct:
typedef struct IPHWNDTAB
{
HWND hWnd;
char IP[30];
}IPHANDLE;
typedef IPHANDLE FAR IpHandle[5];
I want to use the var "IpHandle" in different files in my visual c++ project. some of the files are *.c files that create a dll and some are *.cpp files which...
how can i transfer variable from one project to another?
for example should i write in one project:
extern int x;
x=1;
wnd in another i would like to write:
int y;
y=x;
i dont want to use assembly or writing to files but just the extern system with functions or vars.
Thanks, Aviv.
I'm trying to call a function from more then 1 project .
I do the following:
in one project i wrote:
int ChosenPort;
extern int GetPort(){return ChosenPort;}
from another i try to call the function:
int ChosenPort;
ChosenPort=GetPort();
I get a linking error:
error LNK2001: unresolved...
I need to open a CFormView window in a certain size depending on the system font definition.
How can I know if large fonts or small fonts are defined?
Thanks for the answer,
Aviv.
I wanted to get a checksum of a file.
when I wrote the following function with "#define READ_BUFFER_SIZE 1024"
It didn't get the right checksum for very big files(it did work for smaller files).
I changed it to "#define READ_BUFFER_SIZE 2048"
and it worked!it shouldnt really...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.