|
hrishiS wrote: I guess my idea was very generic....
That's the problem.
If you ask a specific question like "How can two windows objects communicate with each other", I'll say "Post or send registered window messages".
But to a generic question, only a 'generic' answer can be given. Narrow down your query, say me what exactly are those objects that needs to communicate with one another. And for God's sake what can a "module" possibly mean?! You seem to be using that term very frequently.
Please be specific.
“Follow your bliss.” – Joseph Campbell
|
|
|
|
|
thanks
Modules are again different projects....(whose output can be dlls)
By objects, I mean simple objects of some classes...eg:
class Message1
{
....
}
Message1 *objPtr= newMessage1();
This Objptr, i should be able to pass with another modules
-----------------------------
I am a beginner
|
|
|
|
|
Your post is again blunt.
hrishiS wrote: This Objptr, i should be able to pass with another modules
Please read Hooks and DLLs by Dr. Joseph Newcomer[^]
I recommend that you read up on the articles related to DLLs for beginners. There's plenty on CP, please do a search.
“Follow your bliss.” – Joseph Campbell
|
|
|
|
|
Please be clear whether you want to know about the class level design i.e Detailed design or component level design, i.e Architecture design.
I hope you are looking for both then please have look at
Design patterns, please check this, either study with Eric Gamma's text or just check [^]
These topics will surely help you.
Величие не Бога может быть недооценена.
|
|
|
|
|
thanks a lot for your reply...I will look in thorough all these
I was looking something like class desing....
example, make all modules as a dll....export a class pointer ...get the handle and get the functions of that module....etc etc
-----------------------------
I am a beginner
|
|
|
|
|
Hello Sir ..
How to Insert a String on a Image .?
Please Respond me!
Thanks
Failure is Success If we learn from it!!
|
|
|
|
|
|
Thanks Mr. Rajesh ...
Failure is Success If we learn from it!!
|
|
|
|
|
Welcome, and feel free to use the search option.
“Follow your bliss.” – Joseph Campbell
|
|
|
|
|
raju_Code wrote: How to Insert a String on a Image .?
Like this, perhaps?
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
|
|
|
|
|
I've got MFC/C++ based code.
I've wrapped it in static lib (C++/MFC also) providing in .h file e.g. single function that does call to the code.
The lib wrapper .h file contains only single function declaration without any hints to C++ or MFC
int DoSomeTask();
I added that lib with .h file to C console application without MFC support using only standard win libs
I can compile project without problems but I've got unresolved externals during linkage. What is the problem?
error LNK2001: unresolved external symbol _DoSomeTask() main.obj
Чесноков
|
|
|
|
|
Chesnokov Yuriy wrote: unresolved external symbol _DoSomeTask() main.obj
If this function is in the C++ library then its exported name will be in the 'decorated' format - I can't remember the exact rules for this. You will need to find the name from the lib file and use that in your linker options to map to the correct exported name. You could also check the LIB options to see if you can export the undecorated name from there.
|
|
|
|
|
|
Many thanks! I also remebered C/C++ calling issues and looked into C++ FAQ lite.
But there appeared mem leaking from MFC I posted another request above
Чесноков
|
|
|
|
|
hi all,
i want to create an application in such a way that whenever a person Checks-in the code in TFS,
i want the details such as userid,changeset name and description to be updated into an excel.
is it possible to do? is it possible to fetch details from Microsoft TFS to an application which we are creating?
can anyone please guide me how to proceed with this task?
thanks,
rakesh.
|
|
|
|
|
|
Rakesh5 wrote: i want to create an application in such a way that whenever a person Checks-in the code in TFS,
i want the details such as userid,changeset name and description to be updated into an excel.
Why?! That's something that TFS will record in the repository log...or do you trust an Excel spreadsheet more
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
|
|
|
|
|
Hai i am having an exe,i want to move it from one pc to another. when i try it on other pc that dont have Visualstudio 2008 it is saying application configuration error.i am having a dll & which path should i give it to it.
I am using Visual studio 2008
modified on Thursday, December 10, 2009 1:58 AM
|
|
|
|
|
You should either install the VC2008 redistributable package[^] on the target machine or statically link your exe to the MFC and C runtime libraries (you have to modify these in your project settings).
|
|
|
|
|
you need to make a release build (without debug dlls). Static linking is the easisest way to make it.
The professionell is to make a setup with installation of all components
Press F1 for help or google it.
Greetings from Germany
|
|
|
|
|
The program will work well when you use the static c runtime libraray.
|
|
|
|
|
you can use memu "Project"->"settings(Alt+F7)", click "complie" in dialog, then choose then choose "Code Generation", see the "use run-time libraray", choose "MultiThreaded" or "MultiThreaded Debug", rebuild project to apply changes.
|
|
|
|
|
Hello Everyone !
now I want to revise the offset address of the value in other process.
just like this :
void C***Dlg::LockData()
{
HWND hWnd;
HANDLE hLink;
DWORD dwPid;
int dwData=10000;
int nData = 4000000;
hWnd = ::FindWindow(NULL,"title");
if(hWnd == NULL)
{
MessageBox("the game is not running !");
return;
}
GetWindowThreadProcessId(hWnd,&dwPid);
hLink = OpenProcess(PROCESS_ALL_ACCESS | PROCESS_TERMINATE |
PROCESS_VM_OPERATION | PROCESS_VM_READ |
PROCESS_VM_WRITE,FALSE,dwPid);
if(hLink)
{
WriteProcessMemory(hLink,(LPVOID)0x00B05542,&nData,2,NULL);
Sleep(50);
}
CloseHandle(hLink);
CloseHandle(hWnd);
MessageBox("successed !");
}
How to lock the values or set readonly?
|
|
|
|
|
I hope u want to change the behavior of some other process
Величие не Бога может быть недооценена.
|
|
|
|
|
wangningyu wrote: How to lock the values or set readonly?
What values, and what do you mean by readonly? In either case whatever you are trying to do here looks extremely dangerous to me.
|
|
|
|