Hmm, that still doesn't explain to me why the first dll always loads successfully, but guess I have to upgrade MinGw then.
Thank you all for all your help, I really appreciate it!
Wish you the...
Type: Posts; User: dumazz
Hmm, that still doesn't explain to me why the first dll always loads successfully, but guess I have to upgrade MinGw then.
Thank you all for all your help, I really appreciate it!
Wish you the...
I have compiled the exe with both MSVC++ 2010 and MinGW
The Dll's are compiled with MinGW
Oh, and I'm using Windows 7 Enterprise, SP1 I think
I will create a dump file now.
Edit: Ok, made...
I did actually have that, but removed it to make it less to read for you all.
By the way, I want to thank everyone who have tried to help so far, I really appreciate it.
Ok, using the methods in the link above me, it seems that loading the 2nd dll also loads KERNEL32.dll, which then fails to load.
The debugging I get from MSVC++ (i just copied the parts from...
Scroll up, dll code is in post #7
Well, found a resource that might be of some help: PRB: LoadLibrary API Fails with 998 (ERROR_NOACCESS) Error
This seems to be the error that is happening.
Well, I must be doing _something_ wrong since I cannot use 2 dlls in my program.
#include <stdio.h>
#include <windows.h>
extern "C"{
void __declspec (dllexport) getTestFunction2(char* placement, int size){
snprintf(placement, size, "realTestTwo1243214");
...
Ok, thanks for your reply, I did not know that
However, I created another dll with the functions
void __declspec (dllexport) getTestFunction2(char* placement, int size);
long int __declspec...
Well, the way i do it works when its only one dll.
I just made a test dll and made 2 copies of it to test this, is it not 'allowed'.
Edit: Also, here I am not trying to run any of the...
I have just started using dlls and am trying to make a dynamic benchmarking application using dlls as benchmarks (one test per dll, all info inside dll).
However my program always fails to load dlls...
so..i finished the first version of the code (i know it took long, but i had some stuff to do...like my birthday :) :) ) anyway...i know it will error if you try to replace "test" with "test test"...
i found it now..
Thanks for all your help, ill finnish up the project and post the content here when im done.
Special thanks to cs_student for good link and VERY special ;) to rags_to_riches for...
Hey.
Ok i have managed to put the first line of the file into a string / character array.
how do i search through a/the string/ character array?
~DumAzz~
i see, but i guess looping the search function would solve that problem.
or if that dosent help, ill figure something else out....tomorrow :)
Thanks for all the help so far
~Dumazz~
Hmm, i understand how that would be a good way to make it, but i still need to find out how to do the different tasks. well, i guess ill go one step at the time :)
First i input whole file...
I have gone through that tutorial, but thanks anyway :)
Thanks cs_student, that page contained A LOT of good material i can use :) however, i didnt find a function that allows me to search for...
Hi
I have partly made a program that is supposed to be able to execute a search and replace action from lets say a batch file or a shortcut.
I have managed to make the program accept the inputs,...
Im new to programming and trying to copy a file from My Documents To C.
The code i use is:
#include <windows.h>
#include <iostream>
using namespace std;