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

C / C++ / MFC

 
QuestionWorking with .INI files - parsing Pin
john john mackey24-Feb-09 8:24
john john mackey24-Feb-09 8:24 
AnswerRe: Working with .INI files - parsing Pin
Stuart Dootson24-Feb-09 8:38
professionalStuart Dootson24-Feb-09 8:38 
GeneralRe: Working with .INI files - parsing Pin
john john mackey25-Feb-09 6:20
john john mackey25-Feb-09 6:20 
AnswerRe: Working with .INI files - parsing Pin
David Crow24-Feb-09 9:11
David Crow24-Feb-09 9:11 
GeneralAttempted to read or write protected memory when calling DLL Pin
Brady Kelly24-Feb-09 8:14
Brady Kelly24-Feb-09 8:14 
GeneralRe: Attempted to read or write protected memory when calling DLL Pin
Stuart Dootson24-Feb-09 8:31
professionalStuart Dootson24-Feb-09 8:31 
GeneralRe: Attempted to read or write protected memory when calling DLL Pin
Brady Kelly24-Feb-09 8:58
Brady Kelly24-Feb-09 8:58 
GeneralRe: Attempted to read or write protected memory when calling DLL Pin
Stuart Dootson24-Feb-09 9:12
professionalStuart Dootson24-Feb-09 9:12 
Brady Kelly wrote:
I suspect it's at something like a constant, known offset or address in the calling code, if that's at all possible


That sounds scary Smile | :) Especially as DLLs can be relocated...

Brady Kelly wrote:
I'd have to write that client, after a ten minute C refresher, but it's possible, and I'm not scared.


extern __declspec(dllexport) void FuncX();
#pragma comment(lib, "whatever-the-DLLs-lib-file-is");

int main(int argc, char** argv)
{
   FuncX();
}


or if you don't have a lib file:

#include <Windows.h>

typedef void (*FuncXType)();

int main(int argc, char** argv)
{
   HMODULE myDll = ::LoadLibrary(DLL-name);
   FuncXType pFuncX = (FuncXType)GetProcAddress(myDll, "FuncX");
  pFuncX();
}


Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p

GeneralRe: Attempted to read or write protected memory when calling DLL Pin
Brady Kelly24-Feb-09 9:17
Brady Kelly24-Feb-09 9:17 
QuestionHow to parse a CString: 1,1,E1,0.13060,-0.40193,-0.90631 - Parsing Comma Delimted Strings Pin
mrby12324-Feb-09 7:56
mrby12324-Feb-09 7:56 
AnswerRe: How to parse a CString: 1,1,E1,0.13060,-0.40193,-0.90631 - Parsing Comma Delimted Strings Pin
Code-o-mat24-Feb-09 8:03
Code-o-mat24-Feb-09 8:03 
GeneralRe: How to parse a CString: 1,1,E1,0.13060,-0.40193,-0.90631 - Parsing Comma Delimted Strings Pin
mrby12324-Feb-09 8:15
mrby12324-Feb-09 8:15 
GeneralRe: How to parse a CString: 1,1,E1,0.13060,-0.40193,-0.90631 - Parsing Comma Delimted Strings Pin
Code-o-mat24-Feb-09 8:35
Code-o-mat24-Feb-09 8:35 
GeneralRe: How to parse a CString: 1,1,E1,0.13060,-0.40193,-0.90631 - Parsing Comma Delimted Strings Pin
mrby12324-Feb-09 8:38
mrby12324-Feb-09 8:38 
GeneralRe: How to parse a CString: 1,1,E1,0.13060,-0.40193,-0.90631 - Parsing Comma Delimted Strings Pin
Code-o-mat24-Feb-09 8:53
Code-o-mat24-Feb-09 8:53 
GeneralRe: How to parse a CString: 1,1,E1,0.13060,-0.40193,-0.90631 - Parsing Comma Delimted Strings Pin
mrby12324-Feb-09 9:25
mrby12324-Feb-09 9:25 
AnswerRe: How to parse a CString: 1,1,E1,0.13060,-0.40193,-0.90631 - Parsing Comma Delimted Strings Pin
David Crow24-Feb-09 9:12
David Crow24-Feb-09 9:12 
GeneralRe: How to parse a CString: 1,1,E1,0.13060,-0.40193,-0.90631 - Parsing Comma Delimted Strings Pin
ky_rerun24-Feb-09 9:48
ky_rerun24-Feb-09 9:48 
GeneralRe: How to parse a CString: 1,1,E1,0.13060,-0.40193,-0.90631 - Parsing Comma Delimted Strings Pin
Iain Clarke, Warrior Programmer24-Feb-09 12:36
Iain Clarke, Warrior Programmer24-Feb-09 12:36 
QuestionHow to read names from a file and sort them in alphabetical order Pin
raeiko24-Feb-09 7:49
raeiko24-Feb-09 7:49 
AnswerRe: How to read names from a file and sort them in alphabetical order Pin
Stuart Dootson24-Feb-09 8:04
professionalStuart Dootson24-Feb-09 8:04 
GeneralRe: How to read names from a file and sort them in alphabetical order Pin
David Crow24-Feb-09 9:14
David Crow24-Feb-09 9:14 
GeneralRe: How to read names from a file and sort them in alphabetical order Pin
Stuart Dootson24-Feb-09 9:16
professionalStuart Dootson24-Feb-09 9:16 
AnswerRe: How to read names from a file and sort them in alphabetical order Pin
David Crow24-Feb-09 9:47
David Crow24-Feb-09 9:47 
AnswerRe: How to read names from a file and sort them in alphabetical order Pin
tyr200025-Feb-09 1:40
tyr200025-Feb-09 1:40 

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.