|
I suggest you start looking at p/invoke - here's two starters ...
http://www.perceler.com/articles1.php?art=pinvoke1
http://www.codeproject.com/KB/dotnet/PInvoke.aspx
'g'
|
|
|
|
|
What do you mean by a dll which compiles with C#? I think you have a native (C++) dll which you want to use in C#. As already suggested you can either use PInvoke to call the functions from that dll or if its a COM dll you might be interested in generating a tlb for it, then you can add the reference to this .tlb in your C# application and consume it.
I am a HUMAN. I have that keyword (??? too much) in my name........
_AnsHUMAN_b>
|
|
|
|
|
Is it possible to write a code that adds today's date to a jpg photo?(the date is changed everyday)
|
|
|
|
|
1. read JPG without date
2. draw the date text onto the image
3. save the image as a new JPG
4. wait 23.9999999 hours
5. goto 1
there are a million ways to do 1, 2 and 3.
|
|
|
|
|
Still using goto ?!?
2 bugs found.
> recompile ...
65534 bugs found.
|
|
|
|
|
if it's good enough for a CPU, it's good enough for me
|
|
|
|
|
Add it to the visible part of the photo, or to its metedata?
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"Man who follows car will be exhausted." - Confucius
|
|
|
|
|
for the easiness, you can make use of CImage class declared in atlImage.h for loading and saving jpg images. The rest in usual way, is as easy as creating a memory dc, selecting HBIMAP from CImage object into it, and calling TextOut() on memdc. For anti aliasing support and additional smoothness, you may make use of GDI+ functions too.
|
|
|
|
|
using GDI+ you can add metadata (any additional information)to your image file.
see EncoderParameters in GDI+
|
|
|
|
|
Hi all,
is it possible to get the contents of a drive i.e the list of all files and folders inside the drive ?
i have the drive letter with me.
so please can i get some help to get all the contents inside the drive ???
Thank You
|
|
|
|
|
Are you looking for WIN32_FIND_DATA in conjunction with FindFirstFile and FindNextFile?
I am a HUMAN. I have that keyword (??? too much) in my name........
_AnsHUMAN_b>
|
|
|
|
|
Not exactly...
however..could it be elaborated a bit on how to get the first, next or last file from a drive, where the drive letter is known?
|
|
|
|
|
Subrat Patnaik wrote: ...could it be elaborated a bit on how to get the first, next or last file...
Based on what criteria?
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"Man who follows car will be exhausted." - Confucius
|
|
|
|
|
As i have already said the criteria is we have the drive letter. That's all....
now we need to get all the files and folders within it.
|
|
|
|
|
Use the FindFirstFile() /FindNextFile() pair.
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"Man who follows car will be exhausted." - Confucius
|
|
|
|
|
FindFirstFile/FindFirstFileEx/FindNextFile should do that.
Just pass the appropriate filter; I guess it's "X:\*"
|
|
|
|
|
Hi
I have list of URL in a text file. I want to save all the URL in local mahcine and display in a HTmlView. Can any give idea on this
|
|
|
|
|
Read each URL from the text file and pass it to your view. Or perhaps your question means something else.
It's time for a new signature.
|
|
|
|
|
Hi,
I have written an MDI MFC (using VS2010) application which one of our distributors in China is testing. He is running Windows 7, Simple Chinese.
The problem he has encountered are that for some of the dialogs the text shows ??? instead of the text. These dialogs are MFC ones i.e. prompt to save an unsaved file or response to a value beign out of range in a dialog.
since all the remaining text from the application resources show without any problems I wonder if it may be down to the application using a "Multi-byte Charactor Set" and not unicode. (can't remember why I choose "Multi-byte Charactor set")
Should I build the application as a Unicode application?
and would this help pave the way for localised resources?
thanks in advance
Robin
|
|
|
|
|
Robin,
Its good if you build your application using Unicode character set, hopefully this will solve the problem.
Thanks,
Anand.
|
|
|
|
|
Hi Anand,
Thanks for your suggestion. I had suspected that building my application using unicode would solve my problem.
I have heard back from our Chinese distributor this morning that the display issues are now resolved.
Thanks,
Robin.
|
|
|
|
|
He he, that's great
Thanks,
Anand.
|
|
|
|
|
Hi!
I've to generate .lib file from my project. But only object file is generating. I've set the configuration type as Static Library (.lib). But no lib is generated. How to generate .lib file?
|
|
|
|
|
Take a look at your project properties, there is probably something missing that is preventing it executing the LIB step.
It's time for a new signature.
|
|
|
|
|
hello guys...i did not inted to confuse all of you. I want to show the system time in a messaagebox and im using the following code
SYSTEMTIME st;
GetLocalTime(&st);
now as stated earlier, i want to show it in a messagebox thus need to convert it to string, how can I do that??
modified on Tuesday, September 14, 2010 8:14 AM
|
|
|
|