jgowrish's Q&A profile
Visual C# want to use .h header files in c#
Hi, I want to call the header files in my c# program. Where i am using the acrobat sdk which has references to the header file. i tried prebuildevent where i did not have proper examples. if anyone can through light on these it will be appreciated. thanks -rajashekar s hI, I had the same problem as you. I was on the need of using an API (Remedy) that was offered as a Win32 DLL. I had the DLL, the LIB and the header files. C# interop can consume Win32 static libraries but not dynamic ones. My solution: I have created a small Managed C++ DLL and I interact with my Win32 DLL from there. Is like building a wrapper. Regards ...Show All
Visual Basic help the beginner
I am a beginner; I just solved one puzzle and want to do it on VB using a form. I created a form which have 2 textbox, then a button then another textbox and one 1 picbox at the top. I want the user to put number 1 or 2 or 3 on the first two textbox and when the user clicks the button my program should display a message on the 3 rd textbox and at the same time displays the related picture on the picbox. I did all the combinations that the user can enter on those two textbox and the related message that should display on the 3 textbox using the ‘if than else’. How do I do this on my form Any suggestion is appreciated To do this on your form, you can add an event handler using the Windows Forms ...Show All
Smart Device Development How can i add check box in data grid
Hi I need to add check box in data grid control or any other display control. I am using .net Compact Framework 2.0. Please tell me how can i do that If it is not supported then how this problem can be solved Regards http://blogs.msdn.com/netcfteam/archive/2006/04/25/583542.aspx ...Show All
.NET Development Framework 2.0
I updated my system using the 2.0 framework downloads and I am having problems. I tried to use some of the new library classes such as System.IO.Ports and they do not show up in the IDE or in the help files of my VS.NET. I checked in my Program Files and it is there along with the documentation but I tried to use some of the new methods and just recieved errors. Any suggestions Thanks. Dustin I am also having problems with the system.io.ports namespace. When I am trying to compile my little serial com port reader I get this message: The type or namespace name 'Ports' does not exist in the namespace 'System.IO' (are you missing an assembly reference ) I am using Visu ...Show All
Software Development for Windows Vista Logotype certs are mandatory??
Hi, I was able to run the fabrikam example with the www.fabrikam.com SSL certificate. Now I want to use my SSL certificate (CN = sts.mysite.com) and I did the following: 1) Replace the cert thumbprint in app.config 2) run httpcfg -set ssl -i ... 3) set the cert ACL by modifying the existent vb script The certificate CN, CRL are OK and I can access via HTTPS a web site using this cert. On the other hand when trying to use my managed cards, the Identity Selector says that the SSL certificate is rejected since "the remote certificate is invalid according to the validation procedure". The SSL certificate is not a logotype cert. Are logotypes mandatory for CardSpace applications Thanks, kind regards, Clau ...Show All
Visual C# How do you display a number in textbox as Hex value.
I have 3 text boxes. The user will enter hex numbers in textBox1 and textBox2. I want to add them together and display the HEX sum in textBox3. This code ALMOST works. It displays the answer in DECIMAL. How can I display it in HEX Thanks. int mynum1; int mynum2; int myanswer; mynum1 = Int32 .Parse(textBox1.Text, System.Globalization. NumberStyles .HexNumber); mynum2 = Int32 .Parse(textBox2.Text, System.Globalization. NumberStyles .HexNumber); myanswer = mynum1 + mynum2; textBox3.Text = myanswer.ToString(); //this displays in Decimal. How to Display in hex textBox3.Text = myanswer.ToString("X") - or "x" for lower ...Show All
Visual C# Process Management
Can someone explain to me how to make a process automatically go Idle in code Or how to set a process' state to idle. Any help would be appreciated. Do you mean that you want AIM to report to other users that you are idle If so... such a task would be very problematic as IM programs like that are simply watching the time since the last time you used the mouse or keyboard... not unlike the delay before your screensaver is displayed, it is in no way a measure of the idle state of a specific application. Aside from digging into the (likely non-public) API for AIM and trying to forcibly trick it... you’d be far better off rolling your own client with something like Fluent.TOC . ...Show All
Visual Studio 2008 (Pre-release) How should I wrote method that will return ArrayList?
Hello. I would like to add method to WCF service that will return ArrayList of custom objects. What attributes should I add to this method to make it possible I'm using .Net Framework 3.0.04324.17 (ReleaseCandidat AFAIR). //Here is class that will be inserted into ArrayList [DataContract] public class IDTitle : IIDTitle { public IDTitle() { } public IDTitle(object id, string title) { _id = (long)id; _title = title; } private long _id; private string _title; [DataMember] public long ID { get { return _id; } set { _id = value; } } [DataMember] public string Title { get { return _title; } set { _title = value; } } } //Here is service interface [ServiceContract] public interface ISpeedo { [Op ...Show All
Windows Forms ToolStripMenuItem
I have a form to which I have added a MenuStrip. In the MenuStrip I have added a ToolStripMenuItem to which I have added several other ToolStripMenuItems. I wish to control the enabled property of these ToolStripMenuItems by binding the enabled property to an ApplicationSetting (User scope). If the ApplicationSetting to which the enabled propety is bound changes from true to false, I would expect to see these controls switch from enabled to disabled. This is not the case. I then added a Button control to the form, and binded it's enabled property to the same ApplicationSetting, and it works as I expect. The ToolStripMenuItem's enabled property does respond to the ApplicationSetting when the form is first initialized, but does not respo ...Show All
Windows Live Developer Forums Multiple Tile Layers and zoom on double click issue
Hi, I'm loading 3 tile layers and a VEcollection into my map at http://thecascadian.com/ for the murky waters blog entry. That all works fine, but when you select the S Whidbey Isle layer in the dropdown, and then double click on that tilelayer, it zooms to the highest detail view instead of just one step "in". I'm not capturing that event in any way in my scripts; it's doing it "out of box". In my introductory entry I have 2 layers and I don't seem to see that effect. Also I don't seem to see that effect in my other 2 layers in the murky water entry map. Any ideas, thoughts on this. I'm guessing I my need to "hijack" the double click and force an incremental zoom( ). Thanks for any input on this! Sor ...Show All
Visual Basic Checking if drive exist
I got a few questions, maybe you might be able to help. I am needing to design a program that will check for a problem with another pc in my local network. We are not running a server type enviroment, but just a simple peer to peer platform. Any how on to the problem, We use one pc to act as a server, and the hard drives use a raid controller using 1(mirror). We ran into a snaffou yesterday, because no one in that building monitors thier pc's, they just use them, anyhow the raid broke and created 2 independent drives with the same shared folders, and the drive windows decided was bad wasnt the right drive, it renamed the volume and took everyone back to fridays data that resided on the drive that windows thought was bad. Anyhow ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Overlay window over a seperate fullscreen game window
Hi all, This is my first post. Is it feasible to do the following This will be an XNA/C# app. 1) Execute in the systray, scan in background for “special” key press to activate app. (Done) 2) When the "special" key is pressed, render (Bring into focus) a semi-transparent GUI (Mouse driven app), with no window decorations in front of whatever game is already executing.. Without the other game minimizing… When the “special” key is pressed again, the GUI goes into the background and whatever window was originally in focus, has the focus returned to it… Is this even possible What resources should I start reading about if this is possible, so that I can work on making the conc ...Show All
Visual Studio Tools for Office OWC chart control-Share point Web part
Hi, I am working in Share point web site. In one of my webpart say webpart1 as Spreadsheet, I connected that to a DMX query and the data is dispayed in the sprreadsheet It looks like A B C D --------------------------- 2000 aaa 3 4 2000 bbb 6 8 2005 aaa 7 7 2004 aaa 5 3 I added another webpart as chart control and try to draw chart based on the data in webpart1. Here I need the chart control to behave like follows: (Refer above data) 1. Series to be aaa and bbb(from B column)... 2. X axis to be A column (Here the year may repeat for all series. but i require not to repeat) 3. Based on the selection of B column, i need the chart to be reflected ...Show All
Windows Live Developer Forums Mouseover of polygons, what's the latest?
I've read a few threads and was just wondering if anyone has developed a nice way to add mouseover to polygons and or polylines Thanks! We had big big thread some time last year with various ideas. In the end we identified an issue that had to be fixed in VE i believe. For my client at the time I had a simple div label next to each polygon and could easily have a little action menu appear. I'm still very keen to get this sorted so we can do exactly what happens on maps.live.com in terms of editing. (I have asked the VE team on serveral threads to lend us a hand with this, but never got a responce) If anyone has a good working solution please let me know too! And lets put it in the wiki for everyo ...Show All
Software Development for Windows Vista The referenced component 'Outlook' could not be found.
Hi, I am trying to run the Human Workflow sample "Simple Human workflow" I am getting the following Build error for namespace "Microsoft.Office.Interop.Outlook". The type or namespace name "Interop" does not exist in the namespace "Microsoft.Office". I have added a reference for Microsoft Outlook 11.0 Object Library from COM tab. But it is adding with a yellow mark to the reference list. Can anybody please suggest me in working with this sample and how to give reference of Outlook. Thank you in advance. ...Show All
