|
Hallo Sir ,
can you please send me the whole program that would be of great halp to me. Please because i really don't know how to insert the sample you have send me . please help me out
Ovia
|
|
|
|
|
The code is useable as it is, just copy and paste it in. Call it like you would any other function. However, after reading the rest of your original post, it's not going to help you that much because of the other validation you require.
"Ideas are a dime a dozen. People who put them into action are priceless." - Unknown
|
|
|
|
|
hi,
i want to delete the resouce in such a way:
UpdateResource(
m_hModule,
"MY_RES_TYPE",
MAKEINTRESOURCE( IDR_MY_RES1 ),
MAKELANGID( LANG_NEUTRAL, SUBLANG_NEUTRAL ) ,
NULL,
0 );
MSDN:
If lpData is NULL, the specified resource is deleted from the executable file.
GetLastError ===87 — The parameter is incorrect. How can i handle this???
If i do this:
UpdateResource(
m_hModule,
"MY_RES_TYPE",
MAKEINTRESOURCE( IDR_MY_RES1 ),
MAKELANGID( LANG_NEUTRAL, SUBLANG_NEUTRAL ) ,
lpData,
1 );
UpdateResource(
m_hModule,
"MY_RES_TYPE",
MAKEINTRESOURCE( IDR_MY_RES1 ),
MAKELANGID( LANG_NEUTRAL, SUBLANG_NEUTRAL ) ,
NULL,
0 );
everything's going OK but resouce isn't deleted.
|
|
|
|
|
Are you sure that the resource exists? Did you call EndUpdateResource() ?
"Ideas are a dime a dozen. People who put them into action are priceless." - Unknown
|
|
|
|
|
the problem is with the resource type which shouldn't be put in quotes. The resource type should either be one of the default resource types(e.g. RT_STRING ) or it should be the result of calling MAKEINTRESOURCE macro
|
|
|
|
|
(ATL/COM/MFC/C++)
HI, I'm beginner about Window programming
I'd like to develop a small dll that has a function.
There is one text(txt file) loaded on IE.
The txt contains just a words like "Hello!!".
I've made that the "Hello!!" has focus of cursor.
I mean If I move cursor on "Hello!!"
then arrow-shaped cursor would be changed to hand-shape on a web page.
Now, If I click the "Hello!!",
the programe opens new dialog that has a static text.
The static text shows me "Hello!!".
That's all. How can I make this?
any reply, any URL contains some reference about this, offer me please.
|
|
|
|
|
Ummmmmm it's called HTML I think no?
|
|
|
|
|
I know it's easy to develop with HTML.
But I want to make it with ATL/COM/MFC/C++.
help me~
|
|
|
|
|
Can anyone tell me what the pointery bit here means?
DSA_REQ = (M802_16eDSA_REQ*)packetMsg->packet;
|
|
|
|
|
sroberts82 wrote:
(M802_16eDSA_REQ*)packetMsg->packet;
The pointery bit here means that he is typecasting the packetMsg->packet to a pointer to a M802_16eDSA_REQ type.
Behind every great black man...
... is the police. - Conspiracy brother
Blog[^]
|
|
|
|
|
Hello friends,
In vc++ it is possible to generate asm code for a particular cpp file. My question is
Since assembly language instruction is processor dependent, Can you please tell me on which mircroprocessor assembly level language does the vc++ tool can generate asm file.
Hoping for a positive reply.
|
|
|
|
|
Hi ,
It generates the listing for 386 and above. It uses the instruction set for 386 for the listing files.
thanks,
Suresh Ponnusami
|
|
|
|
|
It should do that for every processor the compiler is able to write code for.
Don't try it, just do it!
|
|
|
|
|
phijophlip wrote:
In vc++ it is possible to generate asm code for a particular cpp file.
Yes, it's possible.
"Ideas are a dime a dozen. People who put them into action are priceless." - Unknown
|
|
|
|
|
Hi,
I want to extract NETBIOS name using DNS
For this I am using IADsNameTranslate object of ADSI API
This is the error message I am getting
error: 'IADsNameTranslate' undeclared identifier
It seems like that IADsNameTranslate is supported on Dot net compiler and not on Visual studio 6.0 compiler
Can someone confirm this and suggest some workaround.
Thanks and Regards
Ankur
|
|
|
|
|
|
Hi,
Thanks for your reply.
Its not possible to upgrade SDK for me.
I have to implement this functionallity without upgrading SDK / Compiler.
Please tell me if there's any other approach to this.
IADsNameTranslate is working on dotnet compiler.
Please tell me how NetBIOS name can be extracted from AD using domain name.
Thanks and Regards
Ankur
|
|
|
|
|
i have developed and application where i handle the WM_ENDSESSION
ON_MESSAGE(WM_ENDSESSION,OnMyEndSession)
LRESULT CMyDlg::OnMyEndSession(WPARAM wParam, LPARAM lParam)
{
ShellExecute ( NULL, "open", "C:\\abc.exe, NULL, NULL, SW_HIDE ) ;
}
But the executable(abc.exe) is not executed.
|
|
|
|
|
What does OnMyEndSession() return? What is the value of wParam ?
You should probably handle the WM_QUERYENDSESSION message instead. This message is sent first, and if all applications respond with TRUE , Windows is going to shut down/restart. It wouldn't make sense to start up another application at this point since it would have not had a chance to respond to the WM_QUERYENDSESSION message.
"Ideas are a dime a dozen. People who put them into action are priceless." - Unknown
|
|
|
|
|
dear All,
Just wondered if one knows how to use an array in enum.
this would be more convenient then 100 diffreent variables.
many thanks, Dominik
|
|
|
|
|
I'm not quite sure I understand your question. The enum statement takes the form:
enum Colors
{
Red,
Blue,
Green,
Yellow,
Brown
}; At this point, there are no variables, only one enumerable type.
"Ideas are a dime a dozen. People who put them into action are priceless." - Unknown
|
|
|
|
|
As unsure as DavidCrow in what you mean. Assuming you mean an array of enumerated values, then the answer is simple:
typedef enum {
Blue, Red, Yellow
} Color;
Color colors[100];
Otherwise... please clarify.
|
|
|
|
|
I think he needs a struct or class. He's thinking along these lines (I think)
typedef enum
{
Blue,
Red,
Yellow,
int nTypes[9]
};
I don't think this is possible in an enum
My articles
www.stillwaterexpress.com
BlackDice
|
|
|
|
|
Thanks a lot for your help!
Yep, i was after something along these lines:
typedef enum
{
Blue,
Red,
Yellow,
green[9]
};
ok, now i know that i need and int in front of green[9].
that helps a lot!
will try this tonight!!!
many thanks, Dominik
|
|
|
|
|
ahhh,
no, i just see that this is not possile.
however, using struct or a class will
be a bit unconvenient since it doesn't number the variables automatically.
i just like....
typedef enum
{
Blue,
Red,
Yellow,
Green[9]
};
anything else messes up the code i believe, Dominik
no one's got an idea????
thanks, Dominik
|
|
|
|