|
|
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."
|
|
|
|
|
Hai,
I want to Return a array of strings from a function.how i can get this
|
|
|
|
|
In principle it is not difficult: you can just return a pointer, basically the array itself. There are however memory allocation/deallocation issues (depending also an the string datatype you choose) that you have to carefully take in account.
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.
|
|
|
|
|
I have a CToolBar that uses the TBSTYLE_EX_MIXEDBUTTONS|TBSTYLE_EX_DRAWDDARROWS style, and some toolbar buttons use the BTNS_DROPDOWN style and some of them use BTNS_WHOLEDROPDOWN style. I'd like to make the arrows on the right side of the buttons little bigger and the drop down part more wider, like the Google has done with their toolbar buttons.
I have tried to custom draw the drop down part of the buttons in CDDS_ITEMPOSTPAINT, but here I don't get the button style and even the rect is smaller than actual button size for BTNS_WHOLEDROPDOWN styled buttons.
I am using pure ATL code(***NO MFC***).
Regards!
Padmanabh Sharma
|
|
|
|
|
Hi everybody,
in my application i need to perform a drag&drop into a Word-Document.
For the drag and drop i found a lot of nice tutorials in CodeProject.
But i need also to know how i place the text & images into the clipboard.
I used already a Clipboard-Spyer and saw that a simple text with an image sets nearby
7-10 different "elements" into the clipboard.
Is there probably a guide how to build your own Clipboard-content to paste it into
MS-Word ?
Big thanks !
|
|
|
|