madsurfman'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 Here is a link to an exellent free book on interoperability. http://www.only4gurus.net/miscellaneous/comanddotnetinteroperability.pdf chapter 10 onwards shows how to use c++ com objects in c# .NET apps ...Show All
Software Development for Windows Vista Error while running application on VISTA
we are developing some multimedia application, everything is working fine on XP and 2000, but on Vista I'm getting the following error when I'm calling a COM server method with a BSTR parameter: "Duplicate Memory Free operation. Get a stack trace and report bug against the calling app (not against OLE Automation). File: d:\rtm_edw\com\oleaut32\typelib\oautil.cpp, line 602" Anyone could help me tried that too, isn't working... actually I removed all code from the SetUrl() method implementation and inserted only an ::AfxMessageBox() in order to see that the calling is made, but surprise there is no message box showing up after the call is made in the application. ...Show All
.NET Development DB Error
Hello codegurus Sometimes in my C# DB application working with SQL Server there is bug message like this "Child list for field select * from [TableName] cannot be created" What may be cause of this problem Thanks Yosef ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Finding frames per second?
I've modified the starting program you create in the XNA help file to create 2500 sprites in random areas and bounce them all around... What I'd like to find out is how many frames per second my PC is getting just to see how many sprites I can have on the screen at what framerate. How would I go about finding my framerate and displaying it onscreen Help is much appreciated. Not having looked at XNA yet and knowing very little about C#, what I usually do in Open GL/C++ is set a frame couter, increment it every time a frame is drawn for a couple/few seconds. Use a timer to set a start time and end time variable, use the difference between the two to find an elapsed time, divide the total frame count by the elapsed time and spit th ...Show All
Windows Forms DEVELOPPING A .net APPLICATION THAT WILL BE INTEGRATED IN AN EXISTING VB6 APPLICATION
The new .Net application (or module or dll) that I need to develop will be called and integrated into a Vb6 existing software. My new application will include forms and dialog boxes and reports and of course biz logic. My questions pls: 1/how should choose and design my new application. Should it be a dll or just a simple .exe .Net application. 2/ The new application that I want to create exists already in VB6. is it better just to upgrade it to .Net or is it better to create a new .Net application from scratch and just ignore the VB6 version. thank you <IMHO> Always upgrade to latest and greatest. A rewrite may be preferable if you have an idea for an architecture that will play off against existing design metho ...Show All
Windows Forms Global Assembly Cache in VB 2005
Hi All, I Created an application in Vb 2005(windows) , Sql Server 2000 and Crystal Report 11. i Created the Publish option. when i run the setup its giving me the application and i can run it on my PC where Vb 2005 is installed. But when im trying to install the application in another pc where no Vb 2005 is there it is giving me the following error message. Application requires the assembly CrystalDecisions.CrystalReports.Engine Version 10.2.3600.0 in Global Assembly Cache(GAC). How can i solve this Binu There is a merge module you need to include with your setup program. http://support.businessobjects.com/downloads/merge_modules.asp#07 ClickOnce and Crystal Reports http://forums.microso ...Show All
Microsoft ISV Community Center Forums Help with a formula
I need to write a formula for Excel that calculates the amount of fuel that is in a tank. Here is what it is for. We have cylinder tanks that lay horizontaly. Each month we put a dipstick into the tank to measure how many inches of fuel is left in the tank. I need a formula that will take that and calculate it into gallons. Here is the formula I have to work with. / -1 r - h \ V = L * | [ r^2 * cos (--------)] - [sqrt(2rh - h^2) * (r - h)] | \ r / Any Help is appreciated (BTW I am not the best at math so if possible an explination of this formula would be greatly appreciated) Ok another probl ...Show All
Windows Forms go back in graphics
how can i go back to previous state when i draw graphics shaps such as ctrl+z key Please see the following link. This may be useful to you http://www.marcclifton.com/Articles/DesignAndArchitecture/UndoRedoBuffer/tabid/100/Default.aspx ...Show All
Visual Studio Why so many nested levels when adding a project to VSS?
I am using Visual Studio 2005 and VSS 2005 on XP Pro SP2 (so pretty much all the latest revs and what not). Adding a new project to VSS is driving me crazy because it seems to be creating a directory structure in VSS that I simply do not understand. For example, I created a new BI project to work on some SSIS packages. So, for this example, let's say I called my project "SSIS Tests". Visual Studio dutifully creates a new solution and lists 4 standard subfolders and a new, empty package file: + Data Sources + Data Source Views + SSIS Packages + Package.dtsx + Misc Then I choose the "Add project to Source Control" item, log in to VSS and in the "Add to SourceSafe" dialog that is displayed it gives it ...Show All
Windows Live Developer Forums FF Polyline ReArraging?
I am having very strange behaviour in FF which seems to take the LeftTop edge of the last Poly I add and reArrange all of my other Polys' starting at that LeftTop edge, strangley keeping their proper shape...in certain cases even cropping the regions. Live Example: http://mssa.coba.usf.edu/mapControl/ Use IE to see proper result first, then watch it go nuts in FF. I'd paste the source, but the pages are all ASPX and ASCX - you all can see a good "glued" version of the code being delivered to your browser. Is there something I need to do differently, maybe do it on separete layers or what Yep, this is a known issue and a bug has been filed about it. As always, I can't say anything about when you'll see the ...Show All
Visual FoxPro Preventing key strokes to be passed to control
Hi, I have a form that needs to read data from a bar code reader. The bar code reader connects to the keyboard plug and functions like a keyboard. So what I would like to do is to have the user click a "Barcode Read" button and then scan all the bar codes he needs to scan and then click a "Done" Button. I was going to intercept the barcode data in the forms "Keypress" event and store it in a table. Problem is that I have so far found no way to stop the keypress data to be passed to the current control. As each set of data is terminated by a CR each time a barcode is read you jump to the next control and when you get to one of the buttons <CR> just clicks that button. So what I need is to intercept the ...Show All
Visual Studio SubreportProcessing not firing, does it have to be an executable project?
Summary: SubreportProcessing is not firing when the project output type is not executable. Hi , I am using LocalReport in my application. All the reports are located is inside a library and also all of them are embeded inside the assembly, so far everythings worked fine until I tried to use a subreport. I notice for some reason the SubreportProcessing event does not get fired, in order to test the application, I copied exactly the same files into an executable test project, and I noticed everything work properly there. Can you tell me what is the problem And if my guess is correct, problem is related to the project output type, how can I achieve this without chaning the project output type Many Thank ...Show All
Visual Studio Express Editions Ready, Steady, Hang on a minute.
To give me a break from the program that I'm working on, I've decide to have a go at a simple game, (That's a laugh, my last program was a Simple combobox to show the fonts on my system, it' now about 5000 lines of code and 4Mb, and still going thanks to an extreme beta tester ) Anyway I thought I would do I twist on tetris, still blocks falling etc but before I start and go wandering off into a maze of code, only to come here and ask for you guys to pull me out I thought I would start with your ideas and opinions. Would it be better to have pitureboxes dropping or drawn rectangles or panels or what Is there any help or info out there that I could look at to get the basic idea. Should I stop now and forget it All advice welcome and appreci ...Show All
Visual Studio Tools for Office Nothing happens when opening Office App with cached typed dataset
Hi all, I'm hoping somone can help me with this VSTO 2005/Office 2003 Pro issue... First a bit of background info; I've got a web service which defines a typed dataset (PurchaseOrders) that acts as a wrapper for views in our backend SQL 2000 database. The web service works fine, and returns exactly the information I require. I have also created a very simple word application which has a proxy to the web service and has my typed data set refenced and a cached, typed dataset object defined, it can happily fill it's cached data island with PurchaseOrder data - no problem at all. The issue occurs when the third app comes in to play - it's a web site which is to become our intranet, which I've set up to populate the word app with PO ...Show All
Visual C# Character into bytes
Hi, I need help with turning a characters into ASCII bytes. Here is the code that I have worked on so far my problem is that I can't get to covert. using System; using System.Collections.Generic; using System.Text; namespace KyawPaineW4A1 { public class Crypto { public string getInput() { string getInput; Console .Write( "Please enter a single Character >" ); getInput = Console .ReadLine(); return getInput; } public char convertData( string input) { char convertData; char letter = char .Parse( Console .ReadLine()); convertData = letter; return convertData; } public void displayMessage( char letter) { ...Show All
