|
Hi
ask_you wrote:
can anyone help me?
Yes and no!
NO:
I have no idea about your problem.
YES:
What reports the Compiler / Linker???
- errorcode
- functioncall
- used compiler
- other information
---
Frank
|
|
|
|
|
hi Frank,
sorry, that i misquoted the problem..
the problem does not come when i statically link the application. but when i run the application a system without VC++ installed, it gives the following error:
Debug Assertion Failed:
Program: C:\xyz.exe
File: map_pp.cpp
Line :128
the map_pp.cpp is a MFC file. so i do not where the probwm is. It runs fine on a machine which has VC++ installed in it.
i also want to know if there is some other way other than static linking, such that i can run by application on any windows machine irrespective of whether VC++ is installed on that machine.
Please reply soon,
ask_you
|
|
|
|
|
How to check for a memory leakages for which the memory is allocated by using the GlobalAlloc and LocalAlloc functions.
Regards
Vidya
|
|
|
|
|
CMemoryState can't help you on this as it could only detect new and delete.
How about _CrtMemState, _CrtMemCheckpoint and the supporting APIs used for _malloc_dbg?
Sonork 100.41263:Anthony_Yio
|
|
|
|
|
Please tell me in detail.......
vidya
|
|
|
|
|
|
I also had seen the same sample in MSDN.
Thanks.....
vidya
|
|
|
|
|
OK, the sample works on GlobalAlloc too.
Sonork 100.41263:Anthony_Yio
|
|
|
|
|
HI ,
I need to implement custom print in mshtml i.e iam using my print dialog . I need to know the page range and margins setting. The Exec command takes OLECMDID_PRINT takes these setting in its third parameter.Can anyone tell me how to get it?I need to implement span tag also.
lokiz
|
|
|
|
|
HI .
I WANT TO SEND THE SPECIFICE VALUE TO MY HARD WARE ATTACHED WITH COM PORT .... AFTER SPECIFICE TIME REPETEDLY.
FOR EXAMPLE AFTER EVERY 5 SECONDS I WANT TO SEND A VALUE TO HARDWARE .
HOW CAN I HANDLE IT ( MEANS REPETITION ).
IS IT WITH TIMER ... OR BY CERATING EVENT ...
ANY SAMPLE LINES .. THAT IS BETTER
THANX
|
|
|
|
|
can't you write in lower case ?!
for your problem, set a timer... (SetTimer ())
TOXCCT >>> GEII power
|
|
|
|
|
Hi,
The below function is not working for usergenerated excel files.
AFX_SQL_ASYNC( this, ( ::SQLTables ) ( m_hstmt, strQualifier,SQL_NTS,ustrOwner,SQL_NTS,ustrName,SQL_NTS,ustrType,SQL_NTS ) );
The functions retrieves the parameters if the given excel fiel os genereated by some softwares like DTS but not with the manually generated excel files. Can anyone help me out on this.
Thanks
Chitra
|
|
|
|
|
Try adding a name for your table by doing in excel Insert->Name->Define
Papa
while (TRUE)
Papa.WillLove ( Bebe ) ;
|
|
|
|
|
hi,
how can i get combobox item data?
i used CComboBox::GetItemData(). i dont know how to convert the DWORD value to a string.
any help?
thanks,
jim
|
|
|
|
|
|
"..i dont know how to convert the DWORD value to a string."
Quality!
I know its cruel to laugh at this, but it soo damn funny
I Dream of Absolute Zero
|
|
|
|
|
You cannot directly store string values into the item data parameter of a combo box. You can only store DWORDs (unsigned long), or other valid numeric casts.
What you may be after is the text that you populate the combobox with. In that case you need to call GetLBText() .
e.g.:
<font color=green>
CString strText;
int nSel = m_ComboBox.GetCurSel();
if( m_ComboBox.GetLBText(nSel, strText) != CB_ERR )
{
std::cout<< (LPCTSTR)strText << std::endl;
}
I Dream of Absolute Zero
|
|
|
|
|
Hi,
After installing a WINZIP which adds it's option in WINDOWS default right-click menu. i.e. whenever we select any file and right-click then we see the WINZIP option in MENU.
I want to add my own option in WINDOWS right-click menu just as of WINZIP.
Is there any idea ?
Thanks in advance.
|
|
|
|
|
|
Bikram Singh,I used SetFocus,also SetForegroundWindow,and SetActiveWindow.Everything is OK.But when I set focus combobox(containing playlist),Windows repaints Windows Media Player, so I can't select any item in this combobox.
For other commands such as Ctrl+P,Alt+Enter,..it's ok,only for combobox,i can't choose any item.
|
|
|
|
|
hi guys i hope you can help me i've been stuck for hours now...
i have 2 *.cpp files
file1.cpp has an array of a structure:
struct vertices_structure
{
int array_pos;
int adjacentVerts[20];
};
vertices_structure vert[200];
in file2.cpp i have declared the structure array as extern:
extern vertices_structure vert[];
and now i wanna use the array in a normal way like any other array.
example:
int muh=vert[0].array_pos;
but that doesnt work at all.
there are NO error messages when i compile the code, but i know it doesnt work. i cant use vert[] as normal array either in file1.cpp nor file2.cpp.
cause when i run the debugger the vert[] isnt shown as array but its shown as a pointer. when i delete the row above with "int muh..." from file2.cpp the debugger shows vert[] as array again and everything works normal as its supposed to be.
can someone explain that and helpme here?
|
|
|
|
|
I did not reproduce your problem. I have inplemented the similar code but it ran well. I dont know why.
|
|
|
|
|
I do not see any problem. The variable vert is a pointer to an array of type vertices_structure. The [] (brackets) are just away to access the items in the array.
If you did something like this:
vertices_structure temp;
vertices_structure* pTemp = &temp;
int muh = pTemp[0].array_pos;
int muh = pTemp[1].array_pos;
Good luck!
INTP
|
|
|
|
|
how would i go about allowing a dll to call a function in my program? i have a hook setup in the dll in which i append a few items to the system menu of all applications, and based on some settings in my main application i would like to append different menu items.
should i pass a function pointer? or is there some easy magical way to do this? thanks.
jason
|
|
|
|
|
No magic. Pass an object or a function pointer or give the dll a window handle and have it send a message to the window or... anything else you can come up with that does not rely on magic.
"No matter where you go, there your are." - Buckaroo Banzai
-pete
|
|
|
|