|
You would pad the data out to the DWORD boundary as required. Using a function like ::strtoul(...) would convert the data back into DWORDs, from which you could get your original data from.
Peace!
-=- James Please rate this message - let me know if I helped or not!<HR> If you think it costs a lot to do it right, just wait until you find out how much it costs to do it wrong! Avoid driving a vehicle taller than you and remember that Professional Driver on Closed Course does not mean your Dumb Ass on a Public Road! See DeleteFXPFiles
|
|
|
|
|
If your app will be run on XP+, you can use CryptBinaryToString() and CryptStringToBinary()
|
|
|
|
|
Yes but that gives me a long string how do I make that smaller ?
Thanks.
vg
|
|
|
|
|
Dear James,
In the message above you said we can reduce the buffer by using the function ultoa. But my question is I have to first convert the buffer into ulong and then use the function ultoa. So how do I convert the buffer to ulong because the function ultoa takes in a ulong as its first parameter. So please let me know.
Thanks.
vg
|
|
|
|
|
Hi !!!
In my application, I want to create one dialog box.Which contain 2 small box.
One box will contain name of the components and second box will show preview of the selected component.
Like..Box1 contain.
1.Vessel.
2.Tank.
3.Pump.
4.Nozzle.
5.Exchanger.
6.Fan.
Box 2..
Which show preview of the selected item. like if I will select Fan from the box 1 then it will show me Symbol( .dwg ) of the Fan.
I have collected all symbol (.dwg) for all components..
Now my question is..
1. How can I insert my all .dwg ( autocad drawing)..I.e. which method or class should i used for insert the drawing in my application.
2.How can i show preview ?? Any class or method??
Please help me ...
Thanking you..
Satish
|
|
|
|
|
|
use the <pre> tag to see your message formatted as you like, and please Edit your message instead of reposting a new one
you noticed my message, so there's no need i let mine there
|
|
|
|
|
Does previous messages delete!?
|
|
|
|
|
WhiteSky wrote: Does previous messages delete!?
you wanted to say "Isn't the previous message deleted ?", didn't you ?!
then, yes, so i fixed my consequently. thanks
|
|
|
|
|
You answered to my question but one hours ago;) and I answered to this question 20 minutes ago I think here a problem
|
|
|
|
|
I don't know your answer but one point is that if you want to display drawing from autocad (.dwg files if I understood it well), you'll need a libraray (or whatever) that can read these files.
So, maybe that could be a good starting point: finding how you will load these files.
|
|
|
|
|
Shah Satish wrote: 1. How can I insert my all .dwg ( autocad drawing)..I.e. which method or class should i used for insert the drawing in my application.
Does AutoCAD have some sort of ActiveX control? If not, you'll need to convert the drawings to something that Windows can recognize (e.g., GIF, BMP, JPEG) natively.
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
Thanks for mail.. but How its possible..Because its not possible to convert .dwg to .bmp..Do u have any ideaa ?? Its possible to convert in .sld (slide ) format but then could window recognize it ??
Shah
|
|
|
|
|
I tried but could not found thats why i asked question in this forum..Do u have any bit idea about it ?
|
|
|
|
|
Yeh..It is possible to convert from .dwg to .bmp..But then it is possible to make preview ?? if yes then please suggest me how.. if u have any code then please send it.
Thanks
|
|
|
|
|
Shah Satish wrote: But then it is possible to make preview ??
There are several ways of displaying a .bmp file on a dialog. For example, use a static control with the SS_BITMAP style.
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
But it is possible to display no of .bmp file ??( I have appr more than 100 .dwg file)ie if i will convert it from .dwg to .bmp then i have more than 100 BMP file..
|
|
|
|
|
If you needed to show more than one at a time, you could use a list box with the LBS_OWNERDRAWFIXED style.
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
Hello,
In order to read AutoCAD Dwg files you need a library, DWG files must be analysed in order to write a reader and it should work for different versions (Since it is not documented). You can export drawings as DXF and read it. DXF Format is documented and there are libraries that you can use (DICE, one in OpenSceneGraph)or you can write on your own. However, there is also a library which does that for you (but you gotta get a license) searh for dwg library on Internet.
By the way, Autocad can export bitmap with bmpout command.
As suggested earlier, you may use ActiveX, i dont have much experience on this, however that might be possible, Autocad provides libraries and controls for .NET VB/VC++ applications, search for ARX but your AutoCAD and Visual Studio versions must be compatible. (For example Autocad 2007 needs VS2005)
Hope this helps.
Bekir.
|
|
|
|
|
Hi !!!
Thanks for your mail..Let see..
|
|
|
|
|
Hi,
I need to get the content of the current playlist playing in WMP9.0. However, I am not being able to use functions as get_count and get_item provided.Please help.
|
|
|
|
|
Hey.
This seemed like the most relevant forum but sorry if it isnt.
I am using Visual Studio 2003.NET and would like to know how can I get it to compile files written in x86 assembler code alongside my project.
I have tried adding "E:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\bin\ml.exe" /c /Cx /coff $(inputpath) as a custom build step with the output set to $(InputName).obj. But every time i build i get unresolved external.
At the top of my C++ file i have extern asmfunction.
Any one spot any beginners pitfalls I may have stumbled blindly into.
Cheers.
Dan.
|
|
|
|
|
Why are you using the command line ?
Build the asm to a lib using a separate project, and then bind all projects in the workspace.
|
|
|
|
|
Hey.
Thanks for the help but that is the problem - i am unsure how to compile the asm code.
Thanks for any help.
Dan
|
|
|
|
|
DanB1983 wrote: But every time i build i get unresolved external.
Regarding what (e.g., functions in your .asm files, or in your .cpp files)? Are your .asm files being compiled into .obj files?
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|