|
programmer202 wrote: Could anyone help me?
The warning message is self explanatory. Use fopen_s() instead. If you insist on using fopen() , then define _CRT_SECURE_NO_WARNINGS .
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"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
|
|
|
|
|
Objective: Modify a dll(binary) to either
1. Call another exe
2. Call another dll (function)
3. Modify the Dll binary by inserting code(Asm/Binary) and generate a shell(cmd.exe)
I know it sounds stupid but I hope you guys got the idea. Please feel free if you need more clarification...I have been trying to do this but no info is available. Now Im wondering is it even possible?
Dll injection/hooking/tampering...any(all) concept is ok, just want to know whats the roadblock to achieve something like this.
Eg:
I have a 3rd part dll called Game.dll. now I want to modify it somehow/anyhow and make it call calc.exe....alrite you guys can laugh !!!!
|
|
|
|
|
Well it's certainly possible, but you will need to know the format of not just the dll but the specific obj portion that you want to modify. There are various technical websites around which may offer tools to help you do this but it is not a trivial task.
|
|
|
|
|
I have an app written in VS 2005, which consists of a single exe file, but when I move it to another machine and try to start it it gives me the error:
---------------------------
C:\Documents and Settings\R\Desktop\MyApp\MyApp\MyApp.exe
---------------------------
C:\Documents and Settings\R\Desktop\MyApp\MyApp\MyApp.exe
This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem.
---------------------------
OK
---------------------------
I haven't created this app, just compiled it, and I needed to link it against wxWidgets (the build mode was "Static Unicode Release Multilib").
On the machine where I compiled it it runs fine. Anyone know what is the problem? When a dll is missing the error message usually tells which one, but I've never seen this error message before.
There is sufficient light for those who desire to see, and there is sufficient darkness for those of a contrary disposition.
Blaise Pascal
|
|
|
|
|
|
Randor wrote: Everytime I come to codeproject.com I experience Deja-Vu[^]
From that Wikipedia page:
This article contains weasel words, vague phrasing that often accompanies biased or unverifiable information.
I could swear I've seen this before...
|
|
|
|
|
Thanks for the answer, I also think that it has to do with VS2005 runtime because the app started on a colleague's computer and he had VS2008.
I tried installing the redistributable package on the virtual machine but it didn't work, and when I tried building with /MT instead of /MD I got this warning:
1>cl : Command line warning D9025 : overriding '/MT' with '/MD'
There is sufficient light for those who desire to see, and there is sufficient darkness for those of a contrary disposition.
Blaise Pascal
|
|
|
|
|
sashoalm wrote: Command line warning D9025 : overriding '/MT' with '/MD'
I believe this means you have set /MD on one or more of your .CPP files. Right click all of the .CPP files in your project and change them all to /MT runtime and the D9025 warning should be gone.
Best Wishes,
-David Delaune
|
|
|
|
|
I found where the problems was, I had compiled wxWidgets under VS2008, now I compiled both wxWidgets and the app under VC6 and it worked.
There is sufficient light for those who desire to see, and there is sufficient darkness for those of a contrary disposition.
Blaise Pascal
|
|
|
|
|
So was compiling the app in VS2005 not one of your goals?
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"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
|
|
|
|
|
Not specifically, the app had 3 different workspaces - for VC6, VS2003, and VS2005, while wxWidgets had workspaces for VC6, VS2003, VS2005 and VS2008. I had just picked the newest versions supported, because the newest is supposed to be the best, not for any particular reason.
The problem was that while the app itself only needed VS2005 runtime, but wxWidgets which had been statically linked introduced dependencies on VS2008 too. That was the problem - the VS 2008 dependency that came with wxWidgets. The computer when it showed up had XP SP2 without any VS installed. When I realized that I figured it's best to compile wxWidgets and the app with the same version of VS and I decided to use VC6 because it gives the least dependencies.
There is sufficient light for those who desire to see, and there is sufficient darkness for those of a contrary disposition.
Blaise Pascal
|
|
|
|
|
I want to create a table in a database which should contain columns that are just like in the other known database, I know how to retrieve columns information by CODBCFieldInfo structure but how could I convert it to sql string to use in my create table string.
|
|
|
|
|
I want List of Ports associated with a Process using Window Management Instrumentation ? can it be done using WMI? if yes how ?
Thanks
|
|
|
|
|
Hi All,
i am posting one url through http request with setting this
"x-microsoftajax;Delta=true" header but i am getting "400" http error code, can someone please give me suggestions on it.....
Thanks A Ton
Ash_VCPP
walking over water is just knowing where the stones are.....
|
|
|
|
|
how can i change the colour of ny dialog box and the looks of dialog box in MFC like what we can do with forms in C#
thanks.
|
|
|
|
|
You need to fill certain areas using CPen object.
|
|
|
|
|
|
Hello Friends
I created one .exe that is deleting some files from one folder.
If I do Start Debugging then It is deleting all the files But If i run that exe then it is giving Window error.
What could b the reason?
And I m using remove to delete files.
|
|
|
|
|
|
yogeshs wrote: But If i run that exe then it is giving Window error.
What could b the reason?
With that level of detail, it's anybody's guess.
yogeshs wrote: And I m using remove to delete files.
If remove() fails, check errno .
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"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
|
|
|
|
|
Could you show your code?
Of one Essence is the human race
thus has Creation put the base
One Limb impacted is sufficient
For all Others to feel the Mace
(Saadi )
|
|
|
|
|
As per Add Windows XP Theme Style to your current projects[^] I created a manifest file for my MFC 6 app to make it look a bit nicer on XP et al. But the theming causes one of our 3rd party controls to barf all over the place and crash the app.
Can you use a manifest file to tell Windows NOT to theme a particular control? And if so, how?
Or do I actually have to figure out what a manifest file actually does?
Thanks all
|
|
|
|
|
The manifest file instructs the operating system which run times, or side-by-side (SxS) assemblies (DLLs) the program is to link to. To my knowledge, this is an all or nothing proposition for an executable.
|
|
|
|
|
Hi Kyudos,
You can use the SetWindowTheme Function[^] to exclude a window from theming. Simply set the parameters to empty strings.
SetWindowTheme(hWnd,L"",L"");
I do not know how this will effect controls inside controls. You may need to recursively call the function for all child windows.
Best Wishes,
-David Delaune
|
|
|
|
|
The project involves the game scramble, where we have a 4x4 matrix of characters. The purpose of the program is to search through the matrix and find words in the matrix. I have a dictionary .txt file and can search that for a word correctly and can also print the 4x4 matrix. The problem lies on how to actually search the matrix for a word. The letters can be combined to form a word by any "touching" letters.
For example:
D O P C
H L A R
E S M T
B D E I
One of the words would be car.
So, basically, I need help with how you would go through the matrix and how you would be able to move to any letter touching.
int main(){
FILE* Lex = fopen("lex.txt", "r");
int i = 0;
int j = 0;
char *word = "attack";
char game[4][4] = {{'a', 'b', 'c', 'd'},{'e', 'f', 'g', 'h'},{'i', 'j', 'k', 'l'},{'m', 'n', 'o', 'p'}};
for ( i = 0; i <= 3; i++){
for( j = 0; j <= 3; j++){
game[i][j];
printf("%c", game[i][j]);
if(j == 3){
printf("\n");
}
}
}
char tmp[256]={0x0};
while(Lex!=NULL && fgets(tmp, sizeof(tmp),Lex)!=NULL){
if (strstr(tmp, word)){
size_t lengthTmp = strlen(tmp);
size_t lengthWord = strlen(word);
if(lengthTmp - 1==lengthWord)
printf("%s", tmp);
}
}
if(Lex!=NULL)
fclose(Lex);
system("PAUSE");
return 0;
}
I know I'm missing some things but I need some ideas on how to do a search method before I can fine tune the code. Any help is appreciated...Thanks in advance. Will be glad to clarify if anything is confusing.
|
|
|
|