Click here to Skip to main content
15,914,010 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: hotkey for menu item not showing Pin
Iain Clarke, Warrior Programmer21-Jan-09 4:19
Iain Clarke, Warrior Programmer21-Jan-09 4:19 
Questionnon dependent names in template base class Pin
f_jo21-Jan-09 2:45
f_jo21-Jan-09 2:45 
AnswerRe: non dependent names in template base class Pin
Sarath C21-Jan-09 3:18
Sarath C21-Jan-09 3:18 
AnswerRe: non dependent names in template base class Pin
Stuart Dootson21-Jan-09 3:45
professionalStuart Dootson21-Jan-09 3:45 
GeneralRe: non dependent names in template base class Pin
f_jo21-Jan-09 5:40
f_jo21-Jan-09 5:40 
GeneralRe: non dependent names in template base class Pin
f_jo21-Jan-09 6:43
f_jo21-Jan-09 6:43 
GeneralRe: non dependent names in template base class Pin
Stuart Dootson21-Jan-09 7:48
professionalStuart Dootson21-Jan-09 7:48 
QuestionHow to _properly_ pass a string from a DLL to the App? Pin
OwenBurnett21-Jan-09 2:43
OwenBurnett21-Jan-09 2:43 
Hi,
I'm writing a small app that uses plug ins in for of DLLs that export a class, to get the best compatibility I used am abstract interface as described in http://www.codeproject.com/KB/DLL/dlltips.aspx[^]
But I'm not sure what to do with functions that has to return a string, or that takes a reference to a string as parameter and modifyed it so that one function fills 3 strings.
afaik I should only use LPWSTR as parameter and in such functions and dont return any strings directly, but this brings the problem that I have to know prior how long the string may become, or define a max length that is always prealocated and the string cant be longer.

Is there some way that does not require much code how to properly pass the strings to the application?

Using 3x (GetStrLen & PutStr) functions isn't that prety.
I thought about allocating a WCHAR array in the dll and passing it to the client copying there and unalocating but afaik to be 100% correct i would need to dealocate it again inside the dll so it would have to give me an free function.

What would be the best way here?
AnswerRe: How to _properly_ pass a string from a DLL to the App? Pin
Stuart Dootson21-Jan-09 4:18
professionalStuart Dootson21-Jan-09 4:18 
QuestionConvert a text file into image (tiff file) Pin
Kiran Pinjala21-Jan-09 2:33
Kiran Pinjala21-Jan-09 2:33 
JokeRe: Convert a text file into image (tiff file) Pin
Sarath C21-Jan-09 2:50
Sarath C21-Jan-09 2:50 
JokeRe: Convert a text file into image (tiff file) Pin
Nishad S21-Jan-09 2:52
Nishad S21-Jan-09 2:52 
GeneralRe: Convert a text file into image (tiff file) Pin
Kiran Pinjala21-Jan-09 3:37
Kiran Pinjala21-Jan-09 3:37 
AnswerRe: Convert a text file into image (tiff file) Pin
Nishad S21-Jan-09 2:50
Nishad S21-Jan-09 2:50 
AnswerRe: Convert a text file into image (tiff file) Pin
Hamid_RT21-Jan-09 4:44
Hamid_RT21-Jan-09 4:44 
QuestionHow to draw black colored outline for white colored font drawn on a TIF image file for font size of 8? Pin
Naveen_Kummar21-Jan-09 2:26
Naveen_Kummar21-Jan-09 2:26 
AnswerRe: How to draw black colored outline for white colored font drawn on a TIF image file for font size of 8? Pin
Nishad S21-Jan-09 2:57
Nishad S21-Jan-09 2:57 
GeneralRe: How to draw black colored outline for white colored font drawn on a TIF image file for font size of 8? Pin
Naveen_Kummar21-Jan-09 17:25
Naveen_Kummar21-Jan-09 17:25 
GeneralRe: How to draw black colored outline for white colored font drawn on a TIF image file for font size of 8? Pin
Nishad S21-Jan-09 20:13
Nishad S21-Jan-09 20:13 
GeneralRe: How to draw black colored outline for white colored font drawn on a TIF image file for font size of 8? Pin
Naveen_Kummar21-Jan-09 21:47
Naveen_Kummar21-Jan-09 21:47 
GeneralRe: How to draw black colored outline for white colored font drawn on a TIF image file for font size of 8? Pin
Nishad S21-Jan-09 22:51
Nishad S21-Jan-09 22:51 
QuestionMFC SetActivePage function causing windows to lose focus - Help Pin
IAmRami21-Jan-09 2:15
IAmRami21-Jan-09 2:15 
AnswerRe: MFC SetActivePage function causing windows to lose focus - Help Pin
Code-o-mat21-Jan-09 2:38
Code-o-mat21-Jan-09 2:38 
GeneralRe: MFC SetActivePage function causing windows to lose focus - Help Pin
IAmRami21-Jan-09 4:45
IAmRami21-Jan-09 4:45 
GeneralRe: MFC SetActivePage function causing windows to lose focus - Help Pin
Code-o-mat21-Jan-09 4:49
Code-o-mat21-Jan-09 4:49 

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.