|
See here and here.
"Talent without discipline is like an octopus on roller skates. There's plenty of movement, but you never know if it's going to be forward, backwards, or sideways." - H. Jackson Brown, Jr.
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
Thank you very much!
I already started reading suggested site!
Many thanks
|
|
|
|
|
I have written a WIN32 console application using appwizard.
Now I have changed the entry point of app to
wWinMainCRTStartup and in the PreProcessor defnition
i put UNICODE.
and the program is
#include "stdafx.h"
#include <windows.h>
const int LOCALE_GERM = 2;
const int LOCALE_ENG = 1;
int wmain(int argc, wchar_t **argv, wchar_t **envp)
{
UINT locale = 1;
switch(locale)
{
case LOCALE_GERM:
break;
case LOCALE_ENG:
break;
default:
break;
}
printf(ID_HELLO_WORLD);
return 0;
}
I get the following compiler error
LIBCD.lib(wwincrt0.obj) : error LNK2001: unresolved external symbol _wWinMain@16
Debug/Lingen.exe : fatal error LNK1120: 1 unresolved externals
can you please help me - Thanks
|
|
|
|
|
You need to link LIBCD.lib with your application in your linker settings...
Project->Settings->Link->object/Library Modules. (Follow these steps, if you are using VC++ 6.0)
Regards
Programm3r
|
|
|
|
|
Hi all,
OK, I'm trying to create a pipe server and pipe client, but the thing is ... it's working if I test it on a local computer, but when I try and test it over a network ... nothing, I think the problem is my pipename.
This is what I've done so far.. (some less important code has been excluded)
<br />
LPTSTR lpszPipename = TEXT("\\\\.\\pipe\\hello");<br />
hPipe = CreateNamedPipe( <br />
lpszPipename,
PIPE_ACCESS_DUPLEX,
PIPE_TYPE_MESSAGE |
PIPE_READMODE_MESSAGE |
PIPE_WAIT,
PIPE_UNLIMITED_INSTANCES,
BUFSIZE,
BUFSIZE,
NMPWAIT_USE_DEFAULT_WAIT,
NULL);<br />
<br />
LPTSTR lpszPipename = TEXT("\\\\.\\pipe\\hallo");<br />
The thing is what is the correct pipename to give the server and the client to communicate over a network???
Can anyone help???
Thanx alot
Regards
Programm3r
|
|
|
|
|
You're using "." for the machine name which always refers to the local machine. You need to replace "." in the pipe name in the client code with the name of the machine on which the pipe server is running. For the server code, you can leave it as "." since the server will be running on the local machine.
|
|
|
|
|
Thanx alot Dave .... I'll try it.
Regards
Programm3r
|
|
|
|
|
Hi, what about using an IP address?
Will it work?
Cause I keep getting a error -> Could not open pipe.
I changed the client side to:
<br />
LPTSTR lpszPipename = TEXT("\\\\lw09228109\\pipe\\hallo");<br />
And the server to:
<br />
LPTSTR lpszPipename = TEXT("\\\\.\\pipe\\hallo");<br />
Thanx
Regards
Programm3r
|
|
|
|
|
Don't know. Give it a try and see what happens
The hostname might not be visible from the client which is why its not working that way, which would be a network config issue.
|
|
|
|
|
Well, if I use the host's IP or computer name on the remote (client) machine to connect to something like a shared folder (on the host computer) there is no problem.
mmmm... I have no idea ...
Thanx for the response.
Regards
Programm3r
|
|
|
|
|
Well it works using an IP address (on a local compauter), but still not over a network ... lol
Regards
Programm3r
|
|
|
|
|
maybe there's a network config issue, firewall, etc. no idea why it wouldn't work.
|
|
|
|
|
So in your opinion would a Symantec Gateway, cause the problem?
Regards
Programm3r
|
|
|
|
|
it could, if its blocking the traffic being used by pipes. you could try disabling it.
|
|
|
|
|
Hi!
I found a lot informations about toolbars here (http://www.codeproject.com/docking/).
But I'm really looking for an answer to this question:
Is it possible to add MFC-Toolbars to embedded Containers other than the Main-Application Window?
Example: VS.Net (7.1) - there nearly every Container (like "Properties", or "Class View") has its own Toolbar. Could this be made with MFC - Methods?
Hope this was understandable ... I'm still not really into this MFC-Library.
Thanks in advance!
|
|
|
|
|
_NielsB wrote: I'm still not really into this MFC-Library.
MFC is a class library encapsulating various parts of the Win32 OS API and in some cases adding pre-built feature or functionality. Since it is for C/C++ you can easily access the OS APIs whenever needed. So ....
_NielsB wrote: Could this be made with MFC - Methods?
Yes.
led mike
|
|
|
|
|
Hi
I have huge an application in C++,
i need to find out if there are any memory leaks in it.
Are there any opensource or free (not evaluation versions) tools that identify the whether there are any memory leaks and if so where are they
Pl kindly help me out in this issue
thanks in advance
Regards
Bharath
|
|
|
|
|
|
|
Anybody know, how to change project name in Visual C++ 6.0
|
|
|
|
|
you mean, only the project, of the generated bin (exe or DLL) ?
if you mean the project, rename the corresponding file. otherwise, look into the project settings.
|
|
|
|
|
|
I have developed a databse application using vc6 and database is MS Access 97 . Now for reports we have got two options either we can use Crystal Report or we can go for MS Access reports . If someone could please help me to decide which one would be a better option and could suggest some tutorials for crystal reports cos i am a newibie
|
|
|
|
|
|
Hi All,
Please Help me in this problem statement "How to display files and subfolders from particular folder in TreeControls "
With Best Regards
Vidya
S/W Developer,
AnnetSite,Mumbai
|
|
|
|