|
Hello Everyone!!
I am really in some serious problem, can you ppl please help me!
Is there any PKCS11 wrapper in C# or .Net so that it can be used from C# applciation.
What I mean is that, there are typical function in PKCS11 (cryptoki.dll) like C_Login, C_Encrypt, or C_GetSlotInfo,
I am trying to write myself a Wrapper for PKCS11 but it seems the task would be eronomous, and I am already facing many problems.... I could not understand how to write cryptoki definied variables, structures and classes in C#.
Please any help would be appreciated..
Thanks in Advanced
Regards
|
|
|
|
|
|
hi everyone!
i have the uri object with following url:
http://localhost/res/index.php?time_id=1&a=search&search=yes&course_id=1
i want to edit this object, ex edit the time_id variable from '1' to '2'
and do this with other vaiables in this url
would u tell me how to do this and share example codes ?
thanks in advance.
|
|
|
|
|
That is only a string.
I use Replace for it :
string s = "..." // <- this is your uri address
s = s.Replace("time_id=1", "time_id=2");
and so on...
|
|
|
|
|
Thank you!
but the "time_id" available just is a example.In my situation,i just only edit the value of each available and neednt know what is available for a URL.
|
|
|
|
|
|
I,m looking for a code in Visual Studio to active keyboard's key instead of pressing any button in windows form. For example, when I want to Exit from windows form instead of pushing Exit button, I enter the Escape key. Hopefuly that was enough clear!!!
|
|
|
|
|
Set the form's "Cancel Button" property to the button that closes the form.
Then, when you press Escape, it will activate the code behind that button.
|
|
|
|
|
|
How can i make online calls to mobile phones? (That is, how can i write a program to make phone calls through the internt to my mobile phone)
|
|
|
|
|
Exactly what part of developing such an application are you having trouble with?
|
|
|
|
|
I have written a program(Server and Client). The client can communicate to the Server using remoting to chat and using VOIP to Voice chat online. I need the server to transfer my phone calls i make from the client to any mobile phones in any part of the world. How can i go about this? What are the procedures or the codes required to achieve this aim?
|
|
|
|
|
Hi guys, you are my last hope.
read carefully to the end of my problem: i'd like to drag&drop attachments from outlook to explorer; depending on the pressed key (eg. shift) the email should be edited with the file name (like "Attached file shifted to C://test/file.pdf") or the full path and filename where the file have been pasted (->left mouse, no key: standard copy&paste; left mouse + shift: cut&paste - editing email with filename; left mouse + ctrl: cut & paste - editing email with full path)
there are several programms which remove attachments from email and saving them in defined folders; but this is not the solution; i want to remove the files with my mouse to individual folders (eg. proper project folders...) and have the attachments removed from the email (you know outlook folder size)
most of the features are standard for programming or a little bit of google. the crunchpoint what i couldn't find after days of googling:
i need an event FIRED IN OUTLOOK (eg. within an add-on) when an attachment is pasted to explorer from an email including file name and paste folder;
idea 1)
WM_DROPFIlE and similar: this message is only sent to the application where the file is pasted; does not work
idea 2)
register as listener in explorer: i didn't find a proper interface in explorer
idea 3)
register as listener in outlook: i didn't find a proper interface in outlook; an additional problem would be gathering the information from explorer of the filename and paste-folder
guys, does any one of you has an idea?
why in the C# forum? i'd like to implement in C#
THANKS FOR YOUR HELP
werner
|
|
|
|
|
I was considering making a usercontrol for a WinForms app that was simply a combo style control that displayed a list of hyperlinks when it was dropped down.
Ideally I'd like to have an option to data bind it, but I'm not sure how to do it? Is it simply a matter of coding a DataSource and DataMember property so that when they're set, it loads the control? Or is their more to it?
Thanks
Everything makes sense in someone's mind
|
|
|
|
|
You might want to read the article on MSDN[^]
--edit--
The previous link points to the 'simple databinding walkthrough', but you'd need the complex one[^].
I are Troll
modified on Wednesday, October 21, 2009 5:32 PM
|
|
|
|
|
Excellent, thank you!
Everything makes sense in someone's mind
|
|
|
|
|
Hi All,
It is not possible to scroll and to get ScrollInfo using Win32 scroll bar APIs such as GetScrollInfo with a handle to Microsoft Word, Excel, DirectUIHWND, ect.. It does not respond to WM_VSCROLL and WM_HSCROLL Windows messages.
I am able to get scrollinfo for windows controls, but unable to scroll MS Office Word, Excel.
is it possible to scroll Microsoft Word, Excel, DirectUIHWND, ect..?
Can anyone help me? please
Thanks,
Venkat
|
|
|
|
|
Hi All,
It is not possible to use Win32 scroll bar APIs such as GetScrollInfo with a handle to an Internet Explorer's browser window. Additionally, Internet Explorer's browser window does not respond to WM_VSCROLL and WM_HSCROLL Windows messages.
I am able to get scrollinfo for windows controls, but unable to get scrollinf for browser and MS Office Word, Excel.
is it possible to get the scoll bar position of a browser controls?
and
is it possible to scroll Microsoft Word, Excel, DirectUIHWND, ect..?
Can anyone help me? please
Thanks,
Venkat
|
|
|
|
|
I am having a little trouble converting files to WMF.
This code actually does change the extension, but I am having trouble believing it creates a true WMF.
Bitmap b = new Bitmap(@"Test.tif");
b.Save(@"Result.wmf", ImageFormat.Wmf);
I know there is probably a lot more to it, and I really don't know where to get started.
|
|
|
|
|
mypicturefaded wrote: I am having trouble believing it creates a true WMF.
According to the documentation for Bitmap.Save() you are doing this correctly. What is it that makes you think it is not working?
|
|
|
|
|
Well, these WMF are stored in a database, and when needed they are called from some code and displayed. If I use a batch converter that I downloaded, convert the file, and store it in the database, the program displays the image correctly, but if I use my converter, nothing happens.
That makes me believe something is wrong with my converter.
|
|
|
|
|
Oh...From MSDN
"If no encoder exists for the file format of the image, the Portable Network Graphics (PNG) encoder is used. When you use the Save method to save a graphic image as a Windows Metafile Format (WMF) or Enhanced Metafile Format (EMF) file, the resulting file is saved as a Portable Network Graphics (PNG) file. This behavior occurs because the GDI+ component of the .NET Framework does not have an encoder that you can use to save files as .wmf or .emf files.
Saving the image to the same file it was constructed from is not allowed and throws an exception."
|
|
|
|
|
mypicturefaded wrote: but if I use my converter, nothing happens.
Well I think you need to track through the code with the debugger in order to find which part of your converter is not working, and why. There is nothing here that would give any clue to what is wrong.
|
|
|
|
|
I have also tried this, it doesn't work, it seems to be a little closer though.
Read my post right above your last one, it states .Net doesn't have an encoder for saving as .wmf so it just makes it a .png file.
Here is my new code:
int width, height;
string filename = "testresult.wmf";
try
{
Bitmap Sig = new Bitmap("test.bmp");
width = Sig.Width;
height = Sig.Height;
Graphics sigGraphics = Graphics.FromImage(new Bitmap(width, height));
IntPtr SigHDC = sigGraphics.GetHdc();
Rectangle Bounds = new Rectangle(0, 0, width, height);
Metafile sigMetaFile = new Metafile(filename, SigHDC, Bounds, MetafileFrameUnit.Pixel);
sigGraphics.ReleaseHdc(SigHDC);
sigGraphics = Graphics.FromImage(sigMetaFile);
sigGraphics.PageUnit = GraphicsUnit.Pixel;
sigGraphics.Clear(Color.White);
sigGraphics.DrawImage(Sig, Bounds);
sigGraphics.Save();
sigGraphics.Dispose();
sigMetaFile.Dispose();
Image SigN = Image.FromFile("testresult.wmf");
MessageBox.Show(SigN.RawFormat.Guid.Equals(ImageFormat.Wmf.Guid).ToString());
}
catch (Exception Meta)
{
MessageBox.Show(Meta.ToString());
}
The last two lines of the try statement check to see if it is truly a .WMF. On my other files, it returns true. When I run them through this though, it returns false.
|
|
|
|
|
mypicturefaded wrote: When I run them through this though, it returns false.
I'm afraid I'm as stumped as you on this. If the framework cannot save in wmf format then the only option would seem to be to find some external agent that will do it for you.
|
|
|
|