| | |
Script problem help
Please support our C++ advertiser: Intel Parallel Studio Home
![]() |
like I said before, you wil be spinning your wheels because you are attempting to compile a program that isn't c or c++. you might also make macros out of those funny-looking variable names to redefine then according to c and c++ rules.
do you have a matching #endif for that???
C++ Syntax (Toggle Plain Text)
#ifndef function
do you have a matching #endif for that???
Macros eh? Hmmm, how can I redefine them to C/C++ rules?
Thanks alot for your help so far, I appreciate it.
EDIT:
I didnt have an #endif, but when I placed one in it created 62 errors =\
EDIT 2: The 62 errors came from an #endif in the script file, it still has 1 error if i put the #endif function in.
Thanks alot for your help so far, I appreciate it.
EDIT:
I didnt have an #endif, but when I placed one in it created 62 errors =\
EDIT 2: The 62 errors came from an #endif in the script file, it still has 1 error if i put the #endif function in.
I just tried it -- macors won't work either because the compiler doesn't like the '@' character. You will have to resort to brute force and manually make all the changes. For example, change $@db_count to db_count. you also will have to declare the data types because c will not let you use a variable before it is defined, line vb will do.
<<'line vb will do'
typo -- replace "line" with "like".
You do know how to write c/c++ programs don't you?
I don't think it will be very easy to port that code. What are you trying to do anyway? Why port it at all? there is a huge amount of code examples to follow if you want to access a database in c or c++. There are even some c++ classes on the net.
typo -- replace "line" with "like".
You do know how to write c/c++ programs don't you?
I don't think it will be very easy to port that code. What are you trying to do anyway? Why port it at all? there is a huge amount of code examples to follow if you want to access a database in c or c++. There are even some c++ classes on the net.
C++ Syntax (Toggle Plain Text)
set $@array_size, getarraysize(getarg(0));
That is neither a standard C or C++ statement. You will have to find out what language it was written in, then learn what it does. my guess is that it is assigning the return value of function getarraysize() to variable $@array_size
C++ Syntax (Toggle Plain Text)
int array_size = getarraysize(getarg(0));
now I have no clue what getarg(0) will return. you will need to find that out too.
All that stuff like OnInit, db_count and such is all already defined in the RO source code, its C++ but its been defined in another file, the file I posted just has some general debug errors, 2 of which I fixed. I looked up the fatal error C1004 on the msdn homepage, but it doesnt look to be much help.
•
•
•
•
Originally Posted by Mike182
its C++ .
Many database 4GL programs are like that. The code is similar to c an c++, but isn't.
>>C1004
you can get that error several ways. mismatches braces, brackets #ifdef/#endif are a few. It can be a real bear sometimes to find the error. One of my debugging solutions to find it is to start commenting out large blocks of code until I find the problem.
![]() |
Similar Threads
- embedding java script in php (PHP)
- simple ajax script problem (JavaScript / DHTML / AJAX)
- Hi, I need soem help on a guestbook script (Community Introductions)
Other Threads in the C++ Forum
- Previous Thread: Print Max Prime Number???
- Next Thread: assignment operator for a 3d array
| Thread Tools | Search this Thread |
api array arrays based binary c++ c/c++ calculator char char* class classes code coding compile console conversion convert count database delete deploy desktop developer directshow dll download dynamic dynamiccharacterarray email encryption error file forms fstream function functions game givemetehcodez google graph gui homeworkhelp iamthwee ifstream input int java lib linkedlist linker linux list loop looping loops map math matrix memory multiple news number numbertoword output pointer problem program programming project python random read recursion recursive reference return rpg sorting string strings temperature template templates test text text-file tree unix url variable vector video visual visualstudio win32 windows winsock wordfrequency wxwidgets






