Click here to Skip to main content
15,921,382 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: ANSI --> UNICODE conversion problem! Pin
Daniel Strigl23-Oct-02 20:10
Daniel Strigl23-Oct-02 20:10 
GeneralPlatform SDK's LoadImage() Pin
Sydney Liles23-Oct-02 7:18
Sydney Liles23-Oct-02 7:18 
GeneralRe: Platform SDK's LoadImage() Pin
Stephane Rodriguez.23-Oct-02 7:49
Stephane Rodriguez.23-Oct-02 7:49 
GeneralRe: Platform SDK's LoadImage() Pin
Sydney Liles23-Oct-02 8:16
Sydney Liles23-Oct-02 8:16 
GeneralRe: Platform SDK's LoadImage() Pin
Stephane Rodriguez.23-Oct-02 8:27
Stephane Rodriguez.23-Oct-02 8:27 
GeneralRe: Platform SDK's LoadImage() Pin
Sydney Liles23-Oct-02 8:43
Sydney Liles23-Oct-02 8:43 
GeneralRe: Platform SDK's LoadImage() Pin
Paul M Watt23-Oct-02 9:49
mentorPaul M Watt23-Oct-02 9:49 
GeneralRe: Platform SDK's LoadImage() Pin
Sydney Liles23-Oct-02 9:56
Sydney Liles23-Oct-02 9:56 
Funny you should ask.Big Grin | :-D

I just added a call to GetLastError() a few minutes ago and realized that I had created a CFile (to get size information), opened it, read the contents of the .bmp into a buffer(in an attempt to get LoadImage() to work) and then closed it after I attempted to call LoadImage() -- GetLastError() returned 32 (ERROR_SHARING_VIOLATION). I moved the CFile::Close() to before the call to LoadImage() and now all is well.

It was a dumb thing to over look. Wish I had tried the GetLastError() sooner. Dead | X| Oh well.

Thanks for all of the help.

Sydney Liles
Software Engineer
GeneralLinker error, I messed up with my SDK directory Pin
User 665823-Oct-02 7:10
User 665823-Oct-02 7:10 
GeneralRe: Linker error, I messed up with my SDK directory Pin
Stephane Rodriguez.23-Oct-02 7:50
Stephane Rodriguez.23-Oct-02 7:50 
GeneralRe: Linker error, I messed up with my SDK directory Pin
User 665823-Oct-02 8:56
User 665823-Oct-02 8:56 
Generalstring Pin
wong190723-Oct-02 7:02
wong190723-Oct-02 7:02 
GeneralRe: string Pin
Alvaro Mendez23-Oct-02 11:34
Alvaro Mendez23-Oct-02 11:34 
QuestionSafe file padding? Pin
clintsinger23-Oct-02 5:51
clintsinger23-Oct-02 5:51 
AnswerRe: Safe file padding? Pin
Daniel Turini23-Oct-02 5:55
Daniel Turini23-Oct-02 5:55 
GeneralAccessing Internet through Proxy using Winsock Pin
Ph@ntom23-Oct-02 5:46
Ph@ntom23-Oct-02 5:46 
GeneralRe: Accessing Internet through Proxy using Winsock Pin
pjnaughter23-Oct-02 9:23
pjnaughter23-Oct-02 9:23 
GeneralsndPlay freakin' Sound Pin
Jh323-Oct-02 4:19
Jh323-Oct-02 4:19 
GeneralRe: sndPlay freakin' Sound Pin
Matt Philmon23-Oct-02 4:26
Matt Philmon23-Oct-02 4:26 
Generalsystem command using MFC Pin
achandra00723-Oct-02 4:18
achandra00723-Oct-02 4:18 
GeneralRe: system command using MFC Pin
Simon.W23-Oct-02 4:34
Simon.W23-Oct-02 4:34 
GeneralRe: system command using MFC Pin
pjnaughter23-Oct-02 4:34
pjnaughter23-Oct-02 4:34 
GeneralRe: system command using MFC Pin
Ravi Bhavnani23-Oct-02 7:18
professionalRavi Bhavnani23-Oct-02 7:18 
GeneralRe: system command using MFC Pin
l a u r e n23-Oct-02 7:44
l a u r e n23-Oct-02 7:44 
GeneralAbout Threads Pin
Mel Feik23-Oct-02 3:55
Mel Feik23-Oct-02 3:55 

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.