|
Hello!!
I am running an application in a MSCS cluster node. I want to get the name of the virtual cluster name and not the cluster node name. GetComputerName returns the cluster node name (the machine in which the applicaton is run). I want to get the cluster name (virtual cluster server name), or the name of the cluster which is exposed to the outer world.
I created an generic resource through the Cluster Administrator. I chose the option "Use Network Name for Computer Name" in the resource properties. The resource was created and indicated that it was offline. When I brought it online (through a menu option in the context menu) my application executed and picked up the virtual cluster server name and not the cluster node name. This is excatly what is required. But the application takes the virtual cluster server name only when it is run from the cluster admin and when it is executed manually (by double clicking the application) the application again takes the cluster node name.
So bottomline, how to obtain the virtual cluster server name of the cluster just as you get the machine name from GetComputerNaame() when you run the application independently.
Sandeep
|
|
|
|
|
Hi all:
I have an array unsigned char * image which contains my image information. Is there any way to display it on the screen or maybe save it into a file ??? Could somebody give me an answer please??
Thanks very much!!!
Asura
|
|
|
|
|
What do you mean exactly by 'displaying it on the screen' ? You want to just display that like an image or rather have a way to display each byte (just display the value of the byte) ?
|
|
|
|
|
display like an image
Asura
|
|
|
|
|
display like the game
Asura
|
|
|
|
|
Is this image a BMP, JPG, TIF, GIF, etc file?
"Take only what you need and leave the land as you found it." - Native American Proverb
|
|
|
|
|
|
Add the .bmp file as a resource to your project. Give it an ID such as IDB_BITMAP . Add a picture control to the dialog template. Change the Type to Bitmap, and the Image to IDB_BITMAP . Now when the dialog is displayed, the BMP image will be shown.
"Take only what you need and leave the land as you found it." - Native American Proverb
|
|
|
|
|
I use the raw ip code in Windows 2000 ,and everything are ok.
Now the appllication do not work on Windows XP.
Compiled and built on XP , the net still do not work.
Why?
|
|
|
|
|
The use of raw sockets has been restricted in Windows XP SP2. See here[^] for more information.
|
|
|
|
|
I got a Democode (publish by Microsoft) to replace msgina.dll. I open it in a new IDE,I found the compile option is disabled so to create the DLL I use Rebuild and it created DLL without any error.What I understood that it is a Make file.
After Rebuilt I found that all the .obj files are created outside the Debug Folder.
I copied the completed code into a new Workspace in Win32 Application Dll (choosing empty project option).Now it is showing me error and warnings
I am not understanding what is the problem. Pls Help me
Thanx in advance
|
|
|
|
|
This the output of the Democode.From the output what I understood related Unicode.But Still I am confused.Pls help me
Copyright (C) Microsoft Corp 1988-1998. All rights reserved.
cl -Z7 -Od -DWIN32 -D_WIN32 -D_MT -D_DLL -MD -c -W3 -DCRTAPI1=_cdecl -DCRTAPI2=_cdecl -nologo -D_X86_=1 -D_WINNT -D_WIN32_WINNT=0x0400 -D_WIN32_IE=0x0300 -DWINVER=0x0400 -DUNICODE -D_UNICODE -DDBG -I. gina.c
gina.c
cl -Z7 -Od -DWIN32 -D_WIN32 -D_MT -D_DLL -MD -c -W3 -DCRTAPI1=_cdecl -DCRTAPI2=_cdecl -nologo -D_X86_=1 -D_WINNT -D_WIN32_WINNT=0x0400 -D_WIN32_IE=0x0300 -DWINVER=0x0400 -DUNICODE -D_UNICODE -DDBG -I. debug.c
debug.c
cl -Z7 -Od -DWIN32 -D_WIN32 -D_MT -D_DLL -MD -c -W3 -DCRTAPI1=_cdecl -DCRTAPI2=_cdecl -nologo -D_X86_=1 -D_WINNT -D_WIN32_WINNT=0x0400 -D_WIN32_IE=0x0300 -DWINVER=0x0400 -DUNICODE -D_UNICODE -DDBG -I. welcome.c
welcome.c
cl -Z7 -Od -DWIN32 -D_WIN32 -D_MT -D_DLL -MD -c -W3 -DCRTAPI1=_cdecl -DCRTAPI2=_cdecl -nologo -D_X86_=1 -D_WINNT -D_WIN32_WINNT=0x0400 -D_WIN32_IE=0x0300 -DWINVER=0x0400 -DUNICODE -D_UNICODE -DDBG -I. shutdown.c
shutdown.c
cl -Z7 -Od -DWIN32 -D_WIN32 -D_MT -D_DLL -MD -c -W3 -DCRTAPI1=_cdecl -DCRTAPI2=_cdecl -nologo -D_X86_=1 -D_WINNT -D_WIN32_WINNT=0x0400 -D_WIN32_IE=0x0300 -DWINVER=0x0400 -DUNICODE -D_UNICODE -DDBG -I. options.c
options.c
cl -Z7 -Od -DWIN32 -D_WIN32 -D_MT -D_DLL -MD -c -W3 -DCRTAPI1=_cdecl -DCRTAPI2=_cdecl -nologo -D_X86_=1 -D_WINNT -D_WIN32_WINNT=0x0400 -D_WIN32_IE=0x0300 -DWINVER=0x0400 -DUNICODE -D_UNICODE -DDBG -I. logon.c
logon.c
cl -Z7 -Od -DWIN32 -D_WIN32 -D_MT -D_DLL -MD -c -W3 -DCRTAPI1=_cdecl -DCRTAPI2=_cdecl -nologo -D_X86_=1 -D_WINNT -D_WIN32_WINNT=0x0400 -D_WIN32_IE=0x0300 -DWINVER=0x0400 -DUNICODE -D_UNICODE -DDBG -I. util.c
util.c
rc -r -fo gina.res res.rc
link /NODEFAULTLIB /INCREMENTAL:NO /PDB:NONE /RELEASE /NOLOGO -entry:_DllMainCRTStartup@12 -dll -ignore:4078 -subsystem:native,4.0 -def:gina.def -out:gina.dll gina.obj debug.obj welcome.obj shutdown
.obj options.obj logon.obj util.obj gina.res msvcrt.lib oldnames.lib kernel32.lib ws2_32.lib mswsock.lib advapi32.lib user32.lib gdi32.lib comdlg32.lib winspool.lib comctl32.lib
Creating library gina.lib and object gina.exp
gina.dll - 0 error(s), 0 warning(s)
-- modified at 2:42 Thursday 8th December, 2005
|
|
|
|
|
"gina.dll - 0 error(s), 0 warning(s)"
What errors and warnings do you get when you compile your version?
Kakan
|
|
|
|
|
the above output is of Democode which build without any error
but when i copy the same project in new Workspace (Win32 Dynamic link Library) then it shows error
Compiling...
SHUTDOWN.C
e:\gina\shutdown.c(21) : error C2053: 'szShutdownSettingPath' : wide string mismatch
e:\gina\shutdown.c(48) : warning C4133: 'function' : incompatible types - from 'unsigned short []' to 'const char *'
e:\gina\shutdown.c(142) : warning C4133: 'function' : incompatible types - from 'unsigned short []' to 'const char *'
GINA.C
E:\gina\GINA.C(186) : warning C4133: 'function' : incompatible types - from 'char *' to 'unsigned short *'
E:\gina\GINA.C(234) : warning C4133: 'function' : incompatible types - from 'char *' to 'unsigned short *'
E:\gina\GINA.C(295) : warning C4133: 'function' : incompatible types - from 'unsigned short [260]' to 'char *'
E:\gina\GINA.C(299) : warning C4133: 'function' : incompatible types - from 'char [2]' to 'const unsigned short *'
E:\gina\GINA.C(304) : warning C4133: '=' : incompatible types - from 'unsigned short *' to 'char *'
E:\gina\GINA.C(310) : warning C4133: '=' : incompatible types - from 'unsigned short *' to 'char *'
E:\gina\GINA.C(318) : warning C4133: 'function' : incompatible types - from 'unsigned short *' to 'char *'
E:\gina\GINA.C(335) : warning C4133: 'function' : incompatible types - from 'char [2]' to 'const unsigned short *'
E:\gina\GINA.C(371) : warning C4133: 'function' : incompatible types - from 'char *' to 'unsigned short *'
E:\gina\GINA.C(426) : warning C4133: 'function' : incompatible types - from 'char *' to 'unsigned short *'
LOGON.C
E:\gina\LOGON.C(24) : error C2053: 'szMiniKey' : wide string mismatch
E:\gina\LOGON.C(32) : warning C4133: 'initializing' : incompatible types - from 'char [7]' to 'unsigned short *'
E:\gina\LOGON.C(32) : warning C4133: 'initializing' : incompatible types - from 'char [15]' to 'unsigned short *'
E:\gina\LOGON.C(32) : warning C4133: 'initializing' : incompatible types - from 'char [7]' to 'unsigned short *'
E:\gina\LOGON.C(32) : warning C4133: 'initializing' : incompatible types - from 'char [5]' to 'unsigned short *'
E:\gina\LOGON.C(33) : warning C4133: 'initializing' : incompatible types - from 'char [6]' to 'unsigned short *'
E:\gina\LOGON.C(33) : warning C4133: 'initializing' : incompatible types - from 'char [8]' to 'unsigned short *'
E:\gina\LOGON.C(33) : warning C4133: 'initializing' : incompatible types - from 'char [6]' to 'unsigned short *'
E:\gina\LOGON.C(33) : warning C4133: 'initializing' : incompatible types - from 'char [5]' to 'unsigned short *'
E:\gina\LOGON.C(34) : warning C4133: 'initializing' : incompatible types - from 'char [6]' to 'unsigned short *'
E:\gina\LOGON.C(34) : warning C4133: 'initializing' : incompatible types - from 'char [8]' to 'unsigned short *'
E:\gina\LOGON.C(34) : warning C4133: 'initializing' : incompatible types - from 'char [6]' to 'unsigned short *'
E:\gina\LOGON.C(34) : warning C4133: 'initializing' : incompatible types - from 'char [6]' to 'unsigned short *'
E:\gina\LOGON.C(35) : warning C4133: 'initializing' : incompatible types - from 'char [9]' to 'unsigned short *'
E:\gina\LOGON.C(35) : warning C4133: 'initializing' : incompatible types - from 'char [1]' to 'unsigned short *'
E:\gina\LOGON.C(35) : warning C4133: 'initializing' : incompatible types - from 'char [1]' to 'unsigned short *'
E:\gina\LOGON.C(35) : warning C4133: 'initializing' : incompatible types - from 'char [1]' to 'unsigned short *'
E:\gina\LOGON.C(50) : warning C4133: 'function' : incompatible types - from 'unsigned short []' to 'const char *'
E:\gina\LOGON.C(97) : warning C4133: 'function' : incompatible types - from 'unsigned short *' to 'const char *'
E:\gina\LOGON.C(142) : warning C4133: '=' : incompatible types - from 'char [9]' to 'unsigned short *'
E:\gina\LOGON.C(143) : warning C4133: '=' : incompatible types - from 'char [1]' to 'unsigned short *'
E:\gina\LOGON.C(144) : warning C4133: '=' : incompatible types - from 'char [1]' to 'unsigned short *'
E:\gina\LOGON.C(145) : warning C4133: '=' : incompatible types - from 'char [1]' to 'unsigned short *'
E:\gina\LOGON.C(162) : warning C4133: 'function' : incompatible types - from 'unsigned short []' to 'const char *'
E:\gina\LOGON.C(183) : warning C4133: 'function' : incompatible types - from 'unsigned short [64]' to 'char *'
E:\gina\LOGON.C(204) : warning C4133: 'function' : incompatible types - from 'unsigned short [260]' to 'char *'
E:\gina\LOGON.C(232) : warning C4133: 'function' : incompatible types - from 'unsigned short [260]' to 'const char *'
E:\gina\LOGON.C(358) : warning C4133: '=' : incompatible types - from 'unsigned short *' to 'char *'
E:\gina\LOGON.C(363) : warning C4133: '=' : incompatible types - from 'unsigned short *' to 'char *'
E:\gina\LOGON.C(364) : warning C4133: '=' : incompatible types - from 'unsigned short *' to 'char *'
E:\gina\LOGON.C(400) : warning C4133: 'function' : incompatible types - from 'char [1]' to 'unsigned short *'
E:\gina\LOGON.C(531) : warning C4133: 'function' : incompatible types - from 'char *' to 'unsigned short *'
E:\gina\LOGON.C(550) : warning C4133: 'function' : incompatible types - from 'char *' to 'unsigned short *'
E:\gina\LOGON.C(599) : warning C4133: 'function' : incompatible types - from 'unsigned short *' to 'char *'
E:\gina\LOGON.C(600) : warning C4133: 'function' : incompatible types - from 'unsigned short *' to 'char *'
E:\gina\LOGON.C(601) : warning C4133: 'function' : incompatible types - from 'unsigned short *' to 'char *'
OPTIONS.C
E:\gina\OPTIONS.C(40) : warning C4133: 'function' : incompatible types - from 'char [16]' to 'unsigned short *'
E:\gina\OPTIONS.C(55) : warning C4133: 'function' : incompatible types - from 'unsigned short [260]' to 'char *'
E:\gina\OPTIONS.C(126) : warning C4133: 'function' : incompatible types - from 'char [16]' to 'unsigned short *'
E:\gina\OPTIONS.C(300) : warning C4133: 'function' : incompatible types - from 'char *' to 'unsigned short *'
E:\gina\OPTIONS.C(313) : warning C4133: 'function' : incompatible types - from 'char *' to 'unsigned short *'
E:\gina\OPTIONS.C(322) : warning C4133: 'function' : incompatible types - from 'char *' to 'unsigned short *'
OUT.C
E:\gina\OUT.C(29) : error C2143: syntax error : missing ';' before '}'
E:\gina\OUT.C(29) : warning C4091: ' ' : ignored on left of 'struct _MiniAccount *' when no variable is declared
DEBUG.C
UTIL.C
e:\gina\util.c(105) : warning C4133: 'function' : incompatible types - from 'unsigned short [256]' to 'char *'
e:\gina\util.c(116) : warning C4133: 'function' : incompatible types - from 'unsigned short [256]' to 'char *'
e:\gina\util.c(120) : warning C4133: 'function' : incompatible types - from 'unsigned short [256]' to 'const char *'
e:\gina\util.c(120) : warning C4133: 'function' : incompatible types - from 'unsigned short *' to 'const char *'
WELCOME.C
Error executing cl.exe.
gina.dll - 3 error(s), 58 warning(s)
-- modified at 4:15 Thursday 8th December, 2005
|
|
|
|
|
Hello again, I'm sorry for the delay.
As far as I can see, it's definately worth trying to build a unicode version. Then most (and probably all) warnings and errors will disappear.
But you knew that already, right?
Kakan
|
|
|
|
|
Sorry for the delay from my side too
Pls tell me how to build in unicode version.What settings I have to do to build in unicode
|
|
|
|
|
|
yeah thanx for knocking my head.
|
|
|
|
|
Good morning.
If you look at the original makefile, they define UNICODE in two ways. See this:
-DUNICODE -D_UNICODE
So I think you will have to define both UNICODE and _UNICODE
Kakan
|
|
|
|
|
Hell all,
I have a Visual C++.NET programme and would like it posted on my website built using ASP.NET(C#, CSS and Javascript).
I've done a few projects of Web-based Application(Web service) using ATL Server based on the textooks, but they are rather simple and dumb.(no offense, just not practical.)
This application is not connected to a database, it gets data from an simulator of random number generator(.dll).It's Arbitrage Automatic Trading system based on Financial derivative volatility...feels dizzy, huh? me too. It took me only a month to build, but take me forever to make it as good as I want.
Any comments or suggestions are welcomed.
thanks
|
|
|
|
|
Hi all!
Now I have a source of OpenVPN but I can't Open the Project under VS6.
Pls, can you show me the way to open it.
Many thanks.
|
|
|
|
|
I was wondering if anyone out there has experience with MAPI -- and how it related to a local message store vs. using an exchange server.
The MAPI API is universal for these, but I am seeing crashes when using MAPI with Exchange (vs not).
Are there any special considerations for connections to an Exchange server? Or any specials calls one should make when connecting to an exchange server?
Thanks
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br />
Peter Weyzen<br />
Staff Engineer<br />
<A HREF="http://www.soonr.com">SoonR Inc.</A>
|
|
|
|
|
Hi
I want to register the ocx control
What is the command to register the control in window xp
-- modified at 1:06 Thursday 8th December, 2005
|
|
|
|
|
Couldn't you use regsvr32.exe for the job?
In the command prompt, or in the Windows start-run menu:
regsvr32 myctrl.ocx
this is this.
|
|
|
|
|
How can I remove this error?
I am creating a PictureBox and in that I am displaying an Image dynamically.
For Displaying the Image I have written a statement like:
"System::Windows::Forms::Control::Controls->Add(PictBox);
and gives the following error....
Error: left of'->Add' must point to class/struct/union
So, How can I solve it?
Thank you
-Janak
-- modified at 1:14 Thursday 8th December, 2005
|
|
|
|