|
hi,
We use AfxMessageBox to display a string in a dialogbox.
How can we display an int data type in a dialogbox.
Thanks in advance,
Tejaswini
|
|
|
|
|
what about formatting a string and calling AfxMessgeBox with the string ?
int i = 42;
CString s;
s.Format( "The is an integer : %i", i );
AfxMessageBox( s );
Maximilien Lincourt
Your Head A Splode - Strong Bad
|
|
|
|
|
You can use CString::Format or use itoa
whitesky
|
|
|
|
|
tejaswini.g wrote: We use AfxMessageBox to display a string in a dialogbox.
How can we display an int data type in a dialogbox.
wsprintf can help too
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You
|
|
|
|
|
Hi, I got the belowing code and I am not a C# programmer.I need to insert data what I get from pointer in Edit Box.I have that IDC_EDIT_VALUE Edit box is type CEdit and member m_value.
Please help me.
SafeArrayAccessData(sa, (void **) &bstr);
int nLines = sa->rgsabound->cElements; // number of lines
for ( int i = sa->rgsabound->lLbound; i < nLines; i++ )
// wprintf(L"%s", bstr[i]);
SafeArrayUnaccessData(sa);
|
|
|
|
|
Do you need to insert values to editbox?
whitesky
|
|
|
|
|
On that pointer I get some text, and I need to read text from that pointer and insert in editbox..
|
|
|
|
|
See Here[^] maybe it is some helpful to you
whitesky
|
|
|
|
|
miirsad wrote: I am not a C# programmer.I
bUT THIS is not C# forum!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You
|
|
|
|
|
Hello,
When I'm running my project, I get an assertation message like you can see on the picture:
http://img82.imageshack.us/img82/9623/assertationerroreu6.jpg[^]
Here is a piece of code :
<br />
HWND CDataExchange::PrepareCtrl(int nIDC)<br />
{<br />
ASSERT(nIDC != 0);<br />
ASSERT(nIDC != -1);
HWND hWndCtrl;<br />
COleControlSite* pSite = NULL;<br />
m_pDlgWnd->GetDlgItem(nIDC, &hWndCtrl);<br />
if (hWndCtrl == NULL)<br />
{<br />
pSite = m_pDlgWnd->GetOleControlSite(nIDC);<br />
if (pSite == NULL)<br />
{<br />
TRACE(traceAppMsg, 0, "Error: no data exchange control with ID 0x%04X.\n", nIDC);<br />
ASSERT(FALSE);
AfxThrowNotSupportedException();<br />
}<br />
}<br />
m_idLastControl = nIDC;<br />
m_bEditLastControl = FALSE;
<br />
return hWndCtrl;<br />
}<br />
the line of the errer is bolded.
Do anyone know how to fix this problem?
Thanking you in advance!
SnaidiS(Semion)
|
|
|
|
|
I think pSite is null.Did you saw MSDN:
From the MSDN
ASSERT tests an expression. If the expression is false, it breaks into the kernel debugger.
whitesky
|
|
|
|
|
Thank you!
SnaidiS(Semion)
|
|
|
|
|
Right above the ASSERT, there is an explanation: you call one of the data exchange functions (DDX_... or DDV_...) with an ID of a control that doesn't exist.
Most likely, it did exist once, but was later removed from your resource file, and generated code was left behind...
-----------------------------
Get trial copy of FeinViewer - an integrated GDI objects viewer for Microsoft Visual Studio .NET 2005 (8.0) Visual C++ Debugger, and other convenience and productivity tools for Microsoft Visual Studio .NET at at www.FeinSoftware.com
|
|
|
|
|
Thank you!
SnaidiS(Semion)
|
|
|
|
|
HELLO,
I want to capt events wich are displayed in the windows event viewer ,
i don't know wich api can do that,
i tried to parse the AppEvent.evt file to read them but it was encrypted in a strange way.
who knows haw to capt these events??

|
|
|
|
|
See Here[^] maybe it is some helpful to you
whitesky
|
|
|
|
|
Hello guys,
I tried to search information regarding dumpbin and it's output information. Could anybody inform me how to read output information of dumpbin or point me to some helpful link.
I tried dumpbin -exports dll1.dll. Output is as follows:
$ dumpbin -exports ./Fixed/Bin/Dll1.dll
Microsoft (R) COFF Binary File Dumper Version 6.00.8447
Copyright (C) Microsoft Corp 1992-1998. All rights reserved.
Dump of file ./Fixed/Bin/Dll1.dll
File Type: DLL
Section contains the following exports for Dll1.dll
0 characteristics
44B8A046 time date stamp Sat Jul 15 10:59:02 2006
0.00 version
1 ordinal base
6 number of functions
6 number of names
ordinal hint RVA name
1 0 00001014 ??0CDll1@@QAE@XZ
2 1 0000101E ??4CDll1@@QAEAAV0@ABV0@@Z
3 2 00001019 ?CDll_Func2@CDll1@@QAEXXZ
4 3 0000100F ?CDll_Func@CDll1@@QAEXXZ
5 4 0000100A ?fnDll1@@YAHXZ
6 5 00039FB8 ?nDll1@@3HA
Summary
7000 .data
1000 .idata
3000 .rdata
31000 .text
How to read or understand those above information??
|
|
|
|
|
shumonshumon wrote: 0 characteristics
44B8A046 time date stamp Sat Jul 15 10:59:02 2006
0.00 version
1 ordinal base
6 number of functions
6 number of names
File header values
shumonshumon wrote: ordinal hint RVA name
1 0 00001014 ??0CDll1@@QAE@XZ
2 1 0000101E ??4CDll1@@QAEAAV0@ABV0@@Z
3 2 00001019 ?CDll_Func2@CDll1@@QAEXXZ
4 3 0000100F ?CDll_Func@CDll1@@QAEXXZ
5 4 0000100A ?fnDll1@@YAHXZ
6 5 00039FB8 ?nDll1@@3HA
Exports section
ordinal: comapatible with 16-bit
hint: used by System to improve performance
RVA: relative virtual addess of functions which is the offset from the DLL base
name: decorated names of functions
shumonshumon wrote: Summary
7000 .data
1000 .idata
3000 .rdata
31000 .text
Summary data contains total size of each data type:
.data: initialized data
.idata: imported names table
.rdata: read-only data
.text: .exe's or DLL's code
Best,
Jun
|
|
|
|
|
Thanks a lot! I would like to know more about dll and lib. Especially, how linker links by using .lib file and how runtime evokes a mathod from .dll file. I am wondering there should be some good information regarding those stuff in the web. If you guys know some link, plase let me know. Thanks once again.
asdf
|
|
|
|
|
Hi .
I need to transfer keyboard event from a computer to another . Other computer hasn't keyboard.
If you know please share with me .
Thanks a'lot .
![Rose | [Rose]](https://www.codeproject.com/script/Forums/Images/rose.gif)
|
|
|
|
|
Make a client server application. Handle all keyboard messages in the server(which has a keyboard) and send it through sock to the client. There you can use SendMessage to simulate the keyboard events.
<marquee scrollamount="1" scrolldelay="1" direction="up" height="10" step="1">--[ ]--
[My Current Status]
|
|
|
|
|
Are there any Interface or App do this ?
thanks
|
|
|
|
|
|
There is such greate site i found in google :
http://thesmszone.com/?ref=SmsForFree
With it you can send free sms all world and every country.
But there comes my question:
I registered on it (fake data offcourse, only mobile is correct), got activation code on mobile and activated free sms.
And now :
How to send free sms using this site but in c++ written application residing in tray and when i click on it application will open and i will send to friends arround the world ?
How to use this site and send free sms without using any web browser but application written in c++ ?
thanks.
|
|
|
|
|
Who cares.
Dude, don't spam the lounge, you will be tarred and feathered.
- S
50 cups of coffee and you know it's on!
|
|
|
|