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

C / C++ / MFC

 
Generalmaximize and minimize button Pin
Member 216100418-Aug-05 15:46
Member 216100418-Aug-05 15:46 
GeneralRe: maximize and minimize button Pin
try8818-Aug-05 16:15
try8818-Aug-05 16:15 
GeneralRe: maximize and minimize button Pin
Weiye Chen18-Aug-05 16:20
Weiye Chen18-Aug-05 16:20 
GeneralConversions Pin
Prgrmr4Christ18-Aug-05 13:58
Prgrmr4Christ18-Aug-05 13:58 
GeneralRe: Conversions Pin
TheGreatAndPowerfulOz18-Aug-05 14:19
TheGreatAndPowerfulOz18-Aug-05 14:19 
GeneralRe: Conversions Pin
Prgrmr4Christ18-Aug-05 14:41
Prgrmr4Christ18-Aug-05 14:41 
GeneralRe: Conversions Pin
TheGreatAndPowerfulOz18-Aug-05 14:55
TheGreatAndPowerfulOz18-Aug-05 14:55 
GeneralRe: Conversions Pin
Prgrmr4Christ18-Aug-05 15:39
Prgrmr4Christ18-Aug-05 15:39 
Here's what I'm trying to do:

This code cannot be changed. It works for other purposes, such as char arrays, as well as needing this code to work for UCHAR arrays.
//
CCharHandler::CCharHandler(int res,int size,char *Def)
{
if(size<256)
{
memset(BufferLoadString,0,size);
HMODULE hReferenceLib = LoadLibrary("c:\\DLLCreated.dll");
if(hReferenceLib != NULL)
{
LoadString(hReferenceLib,res,BufferLoadString,size);
FreeLibrary(hReferenceLib);
if(BufferLoadString==NULL)
strncpy(BufferLoadString,Def,size);
}
else
strncpy(BufferLoadString,Def,size);
}
}

//

This code is replaceable. Type of variable is not:
//
UCHAR testchar[] = "OK\r";
//

The string inside quotes is what needs to be replaced. If I can do this without changing UCHAR[] to UCHAR[256] would be good. However, length is unknown. The line after replacement should read something close to:
//
CCharHandler szErrorLoadMessage2(ID_CompiledResource_20001,255,"unable to load ccures");
MessageBox(NULL,szErrorLoadMessage2.BufferLoadString,"",MB_OK);
UCHAR *szLibUCHAR[256];
//

BufferLoadString in the class is defined as:
//
char BufferLoadString[256];
//

Class works. Converting char array to uchar array is what I need help with.
GeneralRe: Conversions Pin
toxcct18-Aug-05 20:12
toxcct18-Aug-05 20:12 
GeneralVirtual disk drive Pin
Eureka_jim18-Aug-05 11:50
Eureka_jim18-Aug-05 11:50 
GeneralRe: Virtual disk drive Pin
Anonymous18-Aug-05 12:14
Anonymous18-Aug-05 12:14 
GeneralRe: Virtual disk drive Pin
MailtoGops19-Aug-05 3:51
MailtoGops19-Aug-05 3:51 
Generalproblem in running an application Pin
celllllllll18-Aug-05 11:32
celllllllll18-Aug-05 11:32 
GeneralRe: problem in running an application Pin
Christian Graus18-Aug-05 15:13
protectorChristian Graus18-Aug-05 15:13 
GeneralRe: problem in running an application Pin
alias001818-Aug-05 22:19
alias001818-Aug-05 22:19 
GeneralRe: problem in running an application Pin
celllllllll19-Aug-05 7:19
celllllllll19-Aug-05 7:19 
GeneralRe: problem in running an application Pin
MailtoGops22-Aug-05 5:42
MailtoGops22-Aug-05 5:42 
Generalerror LNK2001 Pin
valerie9918-Aug-05 11:14
valerie9918-Aug-05 11:14 
GeneralRe: error LNK2001 Pin
Graham Bradshaw18-Aug-05 12:08
Graham Bradshaw18-Aug-05 12:08 
GeneralThank you!!! Pin
valerie9919-Aug-05 4:11
valerie9919-Aug-05 4:11 
GeneralRe: error LNK2001 Pin
sunit518-Aug-05 18:56
sunit518-Aug-05 18:56 
Generalyeah! so true! Pin
valerie9919-Aug-05 4:12
valerie9919-Aug-05 4:12 
Generalquestion related to drivers Pin
gamitech18-Aug-05 10:09
gamitech18-Aug-05 10:09 
General__stdcall Pin
Anton Mikhalyov18-Aug-05 8:09
Anton Mikhalyov18-Aug-05 8:09 
GeneralRe: __stdcall Pin
Chris Losinger18-Aug-05 8:33
professionalChris Losinger18-Aug-05 8: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.