|
hi,
i will tell what i need exactly.
i have .mak file called testprogs.mak.
this has to be linked to four .lib files.
the problem is how should i first build a make file. what i do is
openworkspace -> .mak file -> ok
vc 6.0 by default creates a workspace.
now the item opened in just a make file and not a project, so i am not able to link the .lib files. and finally getting many errors.
kindly help me
|
|
|
|
|
I cannot figure out if you are using a .mak file or the IDE to compile your project. I would be inclined to get everything working using the latter, and then create a .mak file from that.
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"Man who follows car will be exhausted." - Confucius
|
|
|
|
|
hi ,
i am not able to find the .lib file which u mentioned. any idea to resolve my problem ?
pplz help.
|
|
|
|
|
If you do not have the necessary .lib files, the problem cannot be resolved.
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"Man who follows car will be exhausted." - Confucius
|
|
|
|
|
sindhumahe wrote: libgroupsock.lib(Groupsock.obj) : error LNK2001: unresolved external symbol _security_cookie
See here, especially the Compiling and Linking Problems section.
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"Man who follows car will be exhausted." - Confucius
|
|
|
|
|
Hi,
This means that the library was compiled with Buffer Security Check[^]. Since we know that Visual Studio 6 does not implement compiler security checks... this means that the library you are attempting to use was compiled with VS2002 or above.
You have two choices:
1.) Recompile the library with /GS (Buffer Security Check)[^] disabled.
2.) In your VC6 project... try linking with the bufferoverflowU.lib library that was included in deprecated (older) versions of the Platform SDK.
Compiler Security Checks In Depth[^]
Best Wishes,
-David Delaune
|
|
|
|
|
Hi guys,
I have a "display driver" program which I install it successfully on all kinds of OS.
Then I call "::CreateDC()" to create a corresponding device context in another program, it
works fine in most OS except in win2K.
I mean, "::CreateDC()" succeeds in "XP, Vista, Win7", but fails in "Win2K"(returns NULL and
GetLastError() is ERROR_INVALID_PRINTER_NAME(1801)).
I googled it and did find some threads, but all are vague.
However, I figure it's kinda "win2k OS" issue. I think function implementation of "CreateDC" in "win2k" has imperfection.
Does anyone happen to encounter this same problem? Any workaround with it?
Any replys are appreciated
|
|
|
|
|
You could try to use the DC
returned by PrintDlgEx(..) ...
virtual void BeHappy() = 0;
|
|
|
|
|
Thanks for your reply
But I think you misunderstood it. It has nothing to do with "Print" or "Printer".
It's about "video display driver"
|
|
|
|
|
Yes, I have probably misunderstood it...
...does your call look like ::CreateDC("DISPLAY", NULL, ...); under W2K ?
virtual void BeHappy() = 0;
|
|
|
|
|
The follow is my code fragment:
HDC CreateDCFromDriver()
{
HDC hDC;
char lpszDriver[0x20];
if ( FALSE == GetDriverDeviceName(lpszDriver) )
return NULL;
hDC = ::CreateDCA(lpszDriver, 0, 0, 0);
if ( hDC == NULL )
{
MM_TRACE(_T("CreateDCFromDriver: ErrorCode - %08X"), GetLastError());
}
return hDC;
}
I think my code is just OK, cause everything works fine in "xp, vista, win7" OS.
It only occur in "win2k", when in "win2k" OS the code will go into "MM_TRACE(_T("CreateDCFromDriver: ErrorCode - %08X"), GetLastError());
". Meanwhile in other OS, it go into "return hDC;" correctly.
|
|
|
|
|
You could try to trace the lpszDriver too...
virtual void BeHappy() = 0;
|
|
|
|
|
Yes, I've tried that, and it's like "\\.\DISPLAY3" which is OK.
I still believe that this problem is caused by the implementation of function "CreateDC" under
"win2k" OS. I just want to know if there's a workaround out there about this issue.
|
|
|
|
|
Would it be enough under win2k ? :
MSDN: If there are multiple monitors on the system, calling CreateDC(TEXT("DISPLAY"),NULL,NULL,NULL) will create a DC covering all the monitors.
virtual void BeHappy() = 0;
|
|
|
|
|
I do believe that it's relevant to multiple monitors, but I just can't ask our users to set up
another monitor or another video card, or something like that.
I can only make some improvement in our program which I still don't know how to do it.
|
|
|
|
|
Probably the function can not understand the driver name under Win2k
and try to find a printer with the name pointer NULL...
virtual void BeHappy() = 0;
modified on Tuesday, March 30, 2010 4:58 AM
|
|
|
|
|
Yes, I agree with your point.
I found something on the internet which says it may be:
* concerning issues about "video card", like "dualhead cards that use a single chipset"
* or some "security risk" after win2k OS
But for me, neither seems to be correct
|
|
|
|
|
Anyway, I really appreciate your help.
|
|
|
|
|
Is there any inbuilt function in C-Socket Programming for retrieving the IP addresses of all PC's connected in LAN?
Don't die, until you do.
|
|
|
|
|
Just go through this article, very useful one [^]
Величие не Бога может быть недооценена.
|
|
|
|
|
See NetServerEnum() and gethostbyname() .
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"Man who follows car will be exhausted." - Confucius
|
|
|
|
|
Now i am programming an IME for Khmer letter. that application send the VK_BACK to erase a letter befor display an onother letter.
UINT scanBack;
scanBack = MapVirtualKey(VK_BACK, 0);
scanBack =(scanBack << 16) + 1;
PostMessage(GetFocus(), WM_CHAR, VK_BACK, scanBack);
PostMessage(GetFocus(), WM_CHAR, VK_BACK, scanBack);
PostMessage(GetFocus(), WM_CHAR, 0x17A4, 0);
the above code is just a part of condition i implemented to send keystroke to any window with keyboard focus.
some applications could be process well. but some allicaions could not be process.
please let's me know as you could do.
thank.
Nam
|
|
|
|
|
|
SendInput is a better option than Keybd_event, since keybd_event is now superceded with SendInput from Vista versions, microsoft recommends to use SendInput. So i prefer you to use SendInput to aviod porting issues.
Величие не Бога может быть недооценена.
|
|
|
|
|