Can anyone tell me why this is not ok and what I have to do to make this initialization work? I'm more of a C guy
type
TPart = record
name: String;
size: Integer;
dt: Integer;
end;
const
cpha30_11: array[0..2] of TPart = (
('A0101', 6, 0),
('A0203', 2, 0)...
Hi there, I am writing a application in delphi which needs to receive data over a modem. My question is, is there a way to read the data from the modem and store it in a variable for manipulation? thanks
Hi guys, I'm trying to use the async component library to read data coming in from a modem. Does anyone know how I get get the data and store it in a string for manipulation? Thanks
Does anyone see anything wrong with this code?
CALL:
printDetailLine(0,szLine,0);
(szLine is a zero-terminated string)
FUNCTIONS:
inline LOGIC Report::printDetailLine( int dummy, ... )
{
va_list argptr;
LOGIC bStatus;
va_start( argptr, dummy );
bStatus =...
I want to compare the value of a file pointer after subsequent operations. I have a situation where I have a FILE* as a private member of a class and it doesn't seem to be retaining its value between member functions. So:
How do I display the value of a file pointer?
Check out this piece of code, This is producing memory faults upon the end of my program
void DeleteAllElements()
{
STD_NAMESPACE for_each(vector<T*>::begin(), vector<T*>::end(),
---> delete_function() );
}
This is the...
Can anyone recommend a good memory usage diagnistic tool? My program is have trouble destructing and I wanna see where the errors are coming from....
Thanks lads
I'm building a gigantic program(prolly 500000 lines) and I'm performing a trace of the steps. Apparently the program works fine, but as it is exiting I'm getting this message
Debug Assertion Failed.
File dbgheap.c
Line: 1076
Expression: _pFirstBlock == pHead
I know this is probably a memory...
Just say I have some thing like this
const char* temp = "test";
string value;
What is the proper way to assign the const char* to the string.
ie
value=temp will not work, what will?
Hey guys(and the odd girl)
I'm trying to debug my application and I want to trace what is called in my dll. The problem is the debugger will not trace the dll, is there a way to do this? Or does anyone know of a good debugger for Windows?
Hey dudes, could someone check out these unresolved symbols spawning from my dll. They are all exported, it seems to be name mangling, but each function has extern "C" in front of it. Can anyone make any suggestions, this is driving me looptyloo
03120101.obj : error LNK2001...
Hello dudes,
I'm trying to export/import dll classes and functions, but it doesn't seem to be working properly. These are some of the unresolved symbols I'm getting:
__imp__GetAppName@0
GetPyblUsingPymntId@24
My question is, is the @24 a name mangling thing, will this not resolve? If so...
If any of you find yourself creating a DLL in which you are going to create several console applications in which you wish to define a class, but don't wish to declare it several times, you may wish to do the following
1. declare the class within the dll
(this will save you from repeating code...
A question for all you pure virtual function experts out there
Say I have created a dll and I wanted to define functions within a class in a console application accessing this dll... then I would have to make the functions pure virtual and in turn make the class abstract.
When defining these...
CFileFind is a great little tool if you have a large list of files you'd like to change the extension to. You don't even have to specify anything on the command line.
All you have to do is create a console application with MFC support, create a CFileFind variable and use it as such:
bool var...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.