Click here to Skip to main content
15,915,093 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: can't find substrings in string Pin
Cedric Moonen20-Jun-05 6:30
Cedric Moonen20-Jun-05 6:30 
GeneralRe: can't find substrings in string Pin
Rage20-Jun-05 5:53
professionalRage20-Jun-05 5:53 
GeneralRe: can't find substrings in string Pin
David Crow20-Jun-05 6:20
David Crow20-Jun-05 6:20 
GeneralCalling SetWindowTitle Just After Dialog Creation Causes Illegal Operation Pin
yccheok20-Jun-05 5:09
yccheok20-Jun-05 5:09 
GeneralRe: Calling SetWindowTitle Just After Dialog Creation Causes Illegal Operation Pin
David Crow20-Jun-05 5:14
David Crow20-Jun-05 5:14 
GeneralRe: Calling SetWindowTitle Just After Dialog Creation Causes Illegal Operation Pin
Rage20-Jun-05 5:38
professionalRage20-Jun-05 5:38 
GeneralRe: Calling SetWindowTitle Just After Dialog Creation Causes Illegal Operation Pin
Alexander M.,20-Jun-05 9:27
Alexander M.,20-Jun-05 9:27 
Generalstrange voodoo going on!!! Pin
bisserke20-Jun-05 5:03
bisserke20-Jun-05 5:03 
Hi all,

I have this tiny dll which exports a single function (as extern "C")
looking like this:
<br />
void test123(int *t)<br />
{<br />
	*t = _open("c:\\feedback.xml", _O_RDONLY | _O_TEXT);<br />
}<br />


Now the problem is: if I use this in a test program like this:
<br />
test123(&fd);<br />
FILE* fp = _fdopen(fd, "rt");<br />


I get a pretty weird crash in _fdopen(). I also tried to use the fopen call in the test123 function and let it return the FILE*. Now it won't crash but I can't read from it either. Any body got an idea what's going on?

(what I'm actually trying is to read from a buffer through a FILE*. I'm creating a pipe, write the contents of the file to it, pass on the filedescriptor of the read end and transform it to a FILE* with _fdopen. So if anybody can provide me with another way to do this, plz let me know. But it is very important that I can use a FILE* to read from the buffer. Has to do with a porting job...)

I used to have a life ... now I have a computer
GeneralRe: strange voodoo going on!!! Pin
David Crow20-Jun-05 5:11
David Crow20-Jun-05 5:11 
GeneralRe: strange voodoo going on!!! Pin
bisserke20-Jun-05 5:17
bisserke20-Jun-05 5:17 
GeneralRe: strange voodoo going on!!! Pin
David Crow20-Jun-05 5:20
David Crow20-Jun-05 5:20 
GeneralRe: strange voodoo going on!!! Pin
bisserke20-Jun-05 5:29
bisserke20-Jun-05 5:29 
GeneralRe: strange voodoo going on!!! Pin
Chris Losinger20-Jun-05 5:18
professionalChris Losinger20-Jun-05 5:18 
GeneralRe: strange voodoo going on!!! Pin
bisserke20-Jun-05 5:31
bisserke20-Jun-05 5:31 
GeneralRe: strange voodoo going on!!! Pin
John R. Shaw20-Jun-05 7:00
John R. Shaw20-Jun-05 7:00 
GeneralCPropertyPage and OnWizardBack Pin
Brigg Thorp20-Jun-05 4:56
Brigg Thorp20-Jun-05 4:56 
GeneralRe: CPropertyPage and OnWizardBack Pin
Mike Dimmick20-Jun-05 5:00
Mike Dimmick20-Jun-05 5:00 
GeneralRe: CPropertyPage and OnWizardBack Pin
Brigg Thorp20-Jun-05 5:02
Brigg Thorp20-Jun-05 5:02 
GeneralRe: CPropertyPage and OnWizardBack Pin
Rage20-Jun-05 6:06
professionalRage20-Jun-05 6:06 
GeneralRe: CPropertyPage and OnWizardBack Pin
Brigg Thorp20-Jun-05 7:52
Brigg Thorp20-Jun-05 7:52 
QuestionCFileFind allocates memory but does not release it? Pin
ryuki20-Jun-05 4:55
ryuki20-Jun-05 4:55 
AnswerRe: CFileFind allocates memory but does not release it? Pin
David Crow20-Jun-05 5:16
David Crow20-Jun-05 5:16 
Generalbut what is with SHGetFileInfo? Pin
ryuki20-Jun-05 14:12
ryuki20-Jun-05 14:12 
GeneralRe: but what is with SHGetFileInfo? Pin
PJ Arends20-Jun-05 16:39
professionalPJ Arends20-Jun-05 16:39 
GeneralRe: but what is with SHGetFileInfo? Pin
ryuki20-Jun-05 22:33
ryuki20-Jun-05 22:33 

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.