Click here to Skip to main content
15,911,848 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHow can set focus in Main window in SDI? Pin
Le@rner6-Sep-09 21:30
Le@rner6-Sep-09 21:30 
AnswerRe: How can set focus in Main window in SDI? Pin
Stuart Dootson6-Sep-09 22:01
professionalStuart Dootson6-Sep-09 22:01 
Questionconst TCHAR* to TCHAR* Pin
Nandu_77b6-Sep-09 21:02
Nandu_77b6-Sep-09 21:02 
AnswerRe: const TCHAR* to TCHAR* Pin
CPallini6-Sep-09 21:10
mveCPallini6-Sep-09 21:10 
AnswerRe: const TCHAR* to TCHAR* Pin
Stuart Dootson6-Sep-09 21:53
professionalStuart Dootson6-Sep-09 21:53 
GeneralRe: const TCHAR* to TCHAR* Pin
Nandu_77b7-Sep-09 1:58
Nandu_77b7-Sep-09 1:58 
QuestionDisplay Strings Pin
Nick_1116-Sep-09 20:28
Nick_1116-Sep-09 20:28 
AnswerRe: Display Strings Pin
Stuart Dootson6-Sep-09 21:50
professionalStuart Dootson6-Sep-09 21:50 
GeneralRe: Display Strings Pin
Nick_1116-Sep-09 22:56
Nick_1116-Sep-09 22:56 
GeneralRe: Display Strings Pin
Stuart Dootson6-Sep-09 23:07
professionalStuart Dootson6-Sep-09 23:07 
GeneralRe: Display Strings Pin
Nick_1116-Sep-09 23:51
Nick_1116-Sep-09 23:51 
GeneralRe: Display Strings Pin
Stuart Dootson6-Sep-09 23:59
professionalStuart Dootson6-Sep-09 23:59 
GeneralRe: Display Strings Pin
choramale_vs7-Sep-09 0:03
choramale_vs7-Sep-09 0:03 
GeneralRe: Display Strings Pin
Stuart Dootson7-Sep-09 0:14
professionalStuart Dootson7-Sep-09 0:14 
GeneralRe: Display Strings Pin
choramale_vs7-Sep-09 0:41
choramale_vs7-Sep-09 0:41 
This is the code we are using till now. Where are we going wrong?

#include "stdafx.h"
#include "windows.h"
#include "tchar.h"
#include "stdio.h"
#include "string.h"

BOOL CALLBACK MyStringCB(HMODULE some_library,LPCTSTR RT_String,LPTSTR buffer,LONG_PTR aux_param);

char buffer[200];

int _tmain(int argc, _TCHAR* argv[])
{DWORD S;
 LPCTSTR RT_String=NULL;
LONG_PTR aux_param=NULL;
	BOOL q,r;
	HMODULE some_library = LoadLibrary("C:/Hi/Debug/Hi.exe");
	q=  MyStringCB(some_library,RT_String,buffer,aux_param);
r=EnumResourceNames(some_library, RT_STRING, MyStringCB, aux_param);

S=GetLastError();

return 0;

}

BOOL CALLBACK MyStringCB(HMODULE some_library,LPCTSTR RT_String,LPTSTR buffer,LONG_PTR aux_param)
 {  DWORD startId = ((DWORD)buffer - 1) * 16; 
 DWORD i, endId = startId + 16;
   for (i = startId ; i < endId; ++i) 
 {    LoadString(some_library, i,buffer,sizeof(buffer)); 
 } 
 return TRUE;
 }

GeneralRe: Display Strings Pin
Stuart Dootson7-Sep-09 2:35
professionalStuart Dootson7-Sep-09 2:35 
QuestionNon Blocking message Box Pin
trioum6-Sep-09 20:18
trioum6-Sep-09 20:18 
AnswerRe: Non Blocking message Box Pin
Stuart Dootson6-Sep-09 20:23
professionalStuart Dootson6-Sep-09 20:23 
AnswerRe: Non Blocking message Box Pin
Randor 6-Sep-09 21:49
professional Randor 6-Sep-09 21:49 
QuestionHow Could we make a field or fields of database primary key for that database using Dao Database? Pin
A&Ms6-Sep-09 16:42
A&Ms6-Sep-09 16:42 
AnswerRe: How Could we make a field or fields of database primary key for that database using Dao Database? Pin
Stuart Dootson6-Sep-09 20:21
professionalStuart Dootson6-Sep-09 20:21 
QuestionModal Dialogs HELP!!! Pin
sixstorm6-Sep-09 15:22
sixstorm6-Sep-09 15:22 
AnswerRe: Modal Dialogs HELP!!! Pin
Iain Clarke, Warrior Programmer6-Sep-09 21:52
Iain Clarke, Warrior Programmer6-Sep-09 21:52 
GeneralRe: Modal Dialogs HELP!!! Pin
sixstorm7-Sep-09 6:34
sixstorm7-Sep-09 6:34 
AnswerRe: Modal Dialogs HELP!!! Pin
sixstorm7-Sep-09 8:08
sixstorm7-Sep-09 8:08 

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.