C++ compile error !

Pages: 12
Thanks you, i will check this out !
I'll obtain : CreateProcess((null), "C:\masm32 " /c /coff /Zi /Fo../../../Users/XXX/Desktop/asmcode.o ../../../Users/XXX/Desktop/asmcode.asm, ...) failed.
Corrected, now iv'e got
../../../Users/XXX/Desktop/asmcode.asm

\masm32\include\masm32.inc(428) C:\Dev-Cpp\Examples\MDIApp\c RUN_SYNCH_PROCESS_EX

c:\masm32\include\masm32.inc(428) : error A2005: symbol redefinition : RUN_SYNCH_PROCESS_EX

error

I precise that the code is written in c++ ( and not c ! )
Last edited on
Corrected...
And now...after all this work...finaly...

It doesn't work...
Conclusion : This source code and the c++ language are bad and aren't efficient at all.
In fact, while i've followed the step a lot of times to make the assembly work ( about tried 37 times or something like this. )
Dev c++ ( who is also not efficient, like the two others things i've mentioned. ) like to simply ignore the operation.s who is necessary...

BUT, these errors, even with operation.s, aren't justified at all. Well...
DOES someone concretely knows how I can do that, a source code doesn't have to be complicated like this, but well...Guess no one can compile this, it's worth trying, though.

Any help will be greatly appreciated !
Thanks.
?
where is this strange operation_lock used at all? It looks outdated.

If you do need threading use the C++11 thread library:

http://www.cplusplus.com/reference/thread/thread/?kw=thread

If you do not need the threading I would suggest to remove OPERATION_LOCK from the structs

DOES someone concretely knows how I can do that
What exactly?
In Visual Studio 2015 CE I have only 1 error left.
Error C3861 'CreateLicenseList': identifier not found

In license.h there are quite a few funtion prototypes, but no implementations.
1
2
3
4
5
6
7
8
9
10
11
12
13
LICENSE_LIST* LoadLicenseList(char* filename);
bool SaveLicenseList(LICENSE_LIST* li);
void DestroyLicenseList(LICENSE_LIST* li);

int VerifyLicense(LICENSE_LIST* li, LICENSE* l, long verifyWhat);
int SetUserBan(LICENSE_LIST* li, LICENSE* l, long verifyWhat, DWORD seconds);

unsigned int FindLicense(LICENSE_LIST* li, unsigned long serialNumber);
bool AddLicense(LICENSE_LIST* li, LICENSE* l);
bool DeleteLicense(LICENSE_LIST* li, long index);

int EnumLicenses(LICENSE_LIST* list, DWORD filter, LICENSE* criteria, LicenseEnumProc proc, long param);


Are you sure you have posted all the code?
In fact, after reading carefully the readme that came with the software, it clearly said that the licenses were never fully implemented and need so much work to make them work that I personnaly can't made this work.
Anyway, soon after i've read this, i used to remove the concerned file ( license.h, license.cpp ) from the project.

As for OPERATION_LOCK, THIS is a FUNDAMENTAL function from the software ( as I said previously, it was very badly writtent but well... ) Not sure how it exactly work but :

1
2
3
; operation_lock: this function locks a resource using its OPERATION_LOCK structure.
; in newserv, the OPERATION_LOCK comes first in any resource structure, so any
; resource can be locked by simply passing the resource to operation_lock.


And for my : Does someone knwo concretely how to do that ? I mean how to correct this bad software and finnaly make it work, but this is goind to be an hard and long work...
???
??
Am I missing something?

@Thomas1965

In Visual Studio 2015 CE I have only 1 error left.
Error C3861 'CreateLicenseList': identifier not found

In license.h there are quite a few funtion prototypes, but no implementations.
How are you able to compile if all the relevant functions are missing?

@AbsolC85
Does someone knwo concretely how to do that ?
How could you expect that when you neither answer the questions nor post all relevant code?
@coder777
1
2
3
4
5
6
7
@Thomas1965

In Visual Studio 2015 CE I have only 1 error left.
Error C3861 'CreateLicenseList': identifier not found

In license.h there are quite a few funtion prototypes, but no implementations.
How are you able to compile if all the relevant functions are missing?


Probably because the missing functions were not called and so the linker didn't miss them.
Of course the build failed with
Error C3861 'CreateLicenseList': identifier not found
How could you expect that when you neither answer the questions nor post all relevant code?


I answer all the relevant questions and post all the relevant code, if it's isn't sufficient for you just download the software ;)
Topic archived. No new replies allowed.
Pages: 12