Click here to Skip to main content
16,005,467 members
Home / Discussions / C#
   

C#

 
AnswerRe: Online Game - Communication Method? Pin
Kannan Kalyanaraman1-Jan-03 18:58
Kannan Kalyanaraman1-Jan-03 18:58 
GeneralRe: Online Game - Communication Method? Pin
Eric Astor2-Jan-03 3:00
Eric Astor2-Jan-03 3:00 
GeneralIcons from executable Pin
Nick Parker1-Jan-03 10:20
protectorNick Parker1-Jan-03 10:20 
GeneralRe: Icons from executable Pin
Stephane Rodriguez.1-Jan-03 10:31
Stephane Rodriguez.1-Jan-03 10:31 
GeneralRe: Icons from executable Pin
Nick Parker1-Jan-03 10:43
protectorNick Parker1-Jan-03 10:43 
GeneralRe: Icons from executable Pin
Stephane Rodriguez.1-Jan-03 19:05
Stephane Rodriguez.1-Jan-03 19:05 
GeneralRe: Icons from executable Pin
Nick Parker2-Jan-03 5:51
protectorNick Parker2-Jan-03 5:51 
GeneralRe: Icons from executable Pin
Stephane Rodriguez.2-Jan-03 10:05
Stephane Rodriguez.2-Jan-03 10:05 
A few points :
- If LoadImage returns 0, that's because it has failed. There is no point in passing 0 as a handle in the FromHandle() method.
- To know more about the error, you can use the GetLastError() WIN32 function.
- LoadImage can be used in either of the following ways. Trouble is you are using a mix of it! Namely,
-- If LR_LOADFROMFILE is provided as last parameter value (0x0010), like you do, then the second parameter is the actual filename of the image. Doing so, you are directly loading a .bmp, .ico, .cur file. But, from what you told me first you wanted to do, you should not use LR_LOADFROMFILE.
-- If LR_LOADFROMFILE is not provided, then the first paramter is the module instance of the .dll or .exe, allright, and then the second parameter is the resource name. You must pass the resource name : that is either the translated resource ID (use a resource editor) obtained with MAKEINTRESOURCE, or the direct resource name as a string.

MAKEINTRESOURCE is an int --> LPSTR macro defined as is :
#define MAKEINTRESOURCE(i) (LPSTR)((DWORD)((WORD)(i)))
GeneralRe: Icons from executable Pin
Nick Parker2-Jan-03 11:43
protectorNick Parker2-Jan-03 11:43 
GeneralRe: Icons from executable Pin
Stephane Rodriguez.2-Jan-03 18:58
Stephane Rodriguez.2-Jan-03 18:58 
QuestionmySQL, what do you think? Pin
Jassim Rahma1-Jan-03 3:59
Jassim Rahma1-Jan-03 3:59 
AnswerRe: mySQL, what do you think? Pin
David Stone1-Jan-03 6:14
sitebuilderDavid Stone1-Jan-03 6:14 
AnswerRe: mySQL, what do you think? Pin
Adrian Hall2-Jan-03 10:43
Adrian Hall2-Jan-03 10:43 
GeneralRe: mySQL, what do you think? Pin
Jassim Rahma3-Jan-03 0:36
Jassim Rahma3-Jan-03 0:36 
GeneralRe: mySQL, what do you think? Pin
Adrian Hall3-Jan-03 5:15
Adrian Hall3-Jan-03 5:15 
Questionhotmail.com database? Pin
Jassim Rahma1-Jan-03 3:56
Jassim Rahma1-Jan-03 3:56 
AnswerRe: hotmail.com database? Pin
Mike Epprecht1-Jan-03 8:02
Mike Epprecht1-Jan-03 8:02 
GeneralRe: hotmail.com database? Pin
SimonS2-Jan-03 22:41
SimonS2-Jan-03 22:41 
GeneralRe: hotmail.com database? Pin
Adrian Hall3-Jan-03 5:26
Adrian Hall3-Jan-03 5:26 
GeneralVS Installers Pin
Jassim Rahma1-Jan-03 3:53
Jassim Rahma1-Jan-03 3:53 
QuestionHow can I trace a windows installer project? Pin
mkomasi31-Dec-02 22:48
mkomasi31-Dec-02 22:48 
AnswerRe: How can I trace a windows installer project? Pin
Stephane Rodriguez.31-Dec-02 23:11
Stephane Rodriguez.31-Dec-02 23:11 
GeneralRe: How can I trace a windows installer project? Pin
mkomasi1-Jan-03 1:48
mkomasi1-Jan-03 1:48 
GeneralRe: How can I trace a windows installer project? Pin
Stephane Rodriguez.1-Jan-03 2:08
Stephane Rodriguez.1-Jan-03 2:08 
GeneralRe: How can I trace a windows installer project? Pin
Anonymous2-Jan-03 1:59
Anonymous2-Jan-03 1:59 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.