|
Can you show code snippet?
|
|
|
|
|
When you debug the application and the exception occurs, what does the call stack look like? Can you find any code that you recognize in the call stack? Post that code in that case.
Otherwise you have to explain what you're trying to do when the exception occurs.
"It's supposed to be hard, otherwise anybody could do it!" - selfquote "High speed never compensates for wrong direction!" - unknown
|
|
|
|
|
|
Programm3r wrote: for some or other funny reason...the exception is not occuring anymore.....it would seem like the problem is solved.
Ohh, the error has corrected itself...
I just love self-correcting code.
"It's supposed to be hard, otherwise anybody could do it!" - selfquote "High speed never compensates for wrong direction!" - unknown
|
|
|
|
|
|
My code:
<br />
CString cstr;<br />
<br />
char s[8];<br />
byte b[8]; <br />
<br />
...<br />
<br />
cstr.Format("%s", s);
cstr.Format("%s", b); <br />
What class, template or object can store byte array like Cstring stroe string?
Thanks!
|
|
|
|
|
You can use CArray<unsigned char> or (better) std::vector<unsigned char> .
hanlei0000000009 wrote: cstr.Format("%s", b); /* compile no problem, but content is different between cstr and b */
What are you trying to do? (i.e. you probably have to write your own function to obtain the string representation of the array content...)
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
|
|
|
|
|
hanlei0000000009 wrote: What class, template or object can store byte array like Cstring stroe string?
CByteArray.
|
|
|
|
|
|
hi...
i am doin files dragdrop task. i want to drop a file in a richedit box,...While dropping a file i want to display the particular file icon also....
how to do that..any idea?
|
|
|
|
|
|
how to read data from every cells of xls (Ms excell) file?
I need sample.
thx
|
|
|
|
|
|
|
I want to use a bitmap array in my project (it is in core c )and i only found exapmle of MFC and Directx application.
Yes U Can ...If U Can ,Dream it , U can do it ...ICAN
|
|
|
|
|
FreeImage - Google is your friend
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
CBitmap bm[30];//Deklaration of an array.
Thats it?
Greetings from Germany
|
|
|
|
|
the problem is that CBitmap is an MFC class which i cant use ,the project is in core C.anyways thanks
Yes U Can ...If U Can ,Dream it , U can do it ...ICAN
|
|
|
|
|
How about an array of NBITMAPs then?
Or you can add all the bitmaps to an Image List.
Mark
"Go that way, really fast. If something gets in your way, turn."
|
|
|
|
|
hi...
i have a diaog box(derived from cdialog) on that treecrtl(another class) is also there... i want to drop some a file inside the tree ctrl...
Instead of dialog class if i use view class the functions
onDragenter()
ondragover()
ondrop()
these all are supporting....but the above all functions i want to acess in dialog class...i tried....but it is saying that cdialog class does not support..
have any idea.... pls reply ...
|
|
|
|
|
Have you tried implementing IDropTarget in your tree control?
http://www.catch22.net/tuts/dragdrop.asp
|
|
|
|
|
ya...using that only i did in view class...but the same thing it is not supporting in Cdialog class
|
|
|
|
|
I divide my frame window into two parts by using splitter window(pane1,pane2). Now i want to drag pane1 to pane2 place in the frame. How can i implement this.Please help me...
ganesh
|
|
|
|
|
This is not possible. Instead you can have MDI and achive the required functionality.
|
|
|
|
|
Anything's possible
I can't write it for you, but I have used placeholder "view" windows as panes in a splitter
window.
The place holder window has two main jobs: Keeping a pane in the splitter, and resizing the
actual pane on top of itself. To control flicker, the placeholder frame should only erase its
background if there's not an actual pane on top of it.
You can get as fancy as you want with the drag and drop. It's the same as any drag and drop -
Detect mouse click, hittest to see if the cursor is in a drag area of the window, move the window
until the mouse button released, and place the window at the destination.
I hope this made sense and helps a bit.
Mark
"Go that way, really fast. If something gets in your way, turn."
|
|
|
|