Mridu's Q&A profile
Visual C++ C++/CLI code porting problem
I'm trying to port a C++.NET (managed extensions) application to C++/CLI. However I'm not very strong with the syntax yet. What I'm trying to do is to create a wrapper for a C Dll file. To do this I'm using DllImport but I failed to found documentation on it's use. There are some problems due to changes of the syntax but I couldn't find out why yet. The C++.NET line looks like this: [DllImport("my.dll", CharSet = Ansi, CallingConvention = Cdecl, EntryPoint = "#10")] static MY_STATUS CPPInit(MY_HANDLE *pLmxHandle); The idea is to pass a reference of MY_HANDLE to the function which initializes it. One problem is that the key ...Show All
Visual C++ New to vc++
Hello, I am new to VC++ and would like to know if there are any resources available. I find in MSDN there is only basic C++ tutorials. Any links specifically for VC++ would be helpful. Btw I code in C# and VB.net. Also can someone tell me what is the difference btw ATL,MFC etc thanks ATL is a template library that was written to make COM easier in C++. MFC is a library to make Windows applications easier to write. www.codeproject.com is a good source of C++ articles. ...Show All
Visual C++ _inp/_outp Functions
I want to read and write the parallel port. I looked up _inp/_oup at http://msdn2.microsoft.com/en-us/library/y7ae61bc.aspx . In the remarks section it says that _inp/_outp "might not be used in user code in...Windows XP". However, WinXP is listed as being compatible. So, can I or can't I use it Are there dangers in using _inp or _outp VF VFaul wrote: I want to read and write the parallel port. I looked up _inp/_oup at http://msdn2.microsoft.com/en-us/library/y7ae61bc.aspx . In the remarks section it says that _inp/_outp "might not be used in user code in...Windows XP&q ...Show All
Visual Studio OLE DB Connection problem with Crystal Reports 9
I have a C++ application that was implemented as OLE DB provider. When I create a report using Crystal 8.0 or 8.5 using OLE DB I connect to my application (it is displayed in the list of OLE DB (ADO) providers) and generate reports. When I try to do the same with Crystal 9, I have a problem: As well as in Crystal 8, I select to create a new connection, select OLE DB and select my application as a provider, select the data link file where I list the login and password information, then press "Next" and am gettiing stucked with the "Data Source" dialog. My provider does not support the data source and with Crystal 8 and 8.5 I connect ...Show All
SQL Server CPU limitations of SQL express
I had a question about the CPU limitations of SQL express. It says limited to 1 CPU but what if I have multiple instaces since the application is a new service and runs in it 'sown memory space how is it limited to 1 CPU does the service use multiple processors and the queris are binded to one Thanks Hi, SQL Server will ignorte the other CPUs. if you have another edition on the server it could keep track of the other CPUs as well, although SQL Server Express is installed. HTH, Jens SUessmeyer. --- http://www.sqlserver2005.de --- ...Show All
Visual Basic TWO FORMS
I'M WORKING ON A APPLICATION IN WHICH I WANT TO HAVE SEVERAL WINDOWS. I DON'T KNOW ENOUGH ABOUT VB 2005 EXPRESS TO HAVE THE VISIBILITY YET. HOW DO I TRANSFER CONTROL FROM SAY WINDOW1 TO WINDOW2. VB CALLS THE WINDOWS FORMS-I THINK. Simply call the show() to show the form. for Exmaple, assume form1 as form, and form2 as form. public class form1 public sub button1_click(...) handles button1.Click form2.show() end sub end class ...Show All
Visual C# How do I get memory back when I don't use a FORM
Hi all I have a form that I only need to load if it meets the certain criteria.. I am using Ezula^ Ezula1 = gcnew Ezula(); And In the InitializeComponent(); I have some functions to determine if the form needs to run if not return false....... How do I deactive and unload the the gcnew Ezula(); from memory........ I have not done a form_load yet,,,,,, public:Ezula(void){ InitializeComponent(); // //TODO: Add the constructor code here // vasu::Glabols::Return_Boolean = Is_presoft_Installed_And_Ezula_accepted(); } also the other question that I have is when I do do a form_load and I do a this ...Show All
Visual Studio Express Editions datagrid
can any proffesional help me on datagrid i want date and time write in cells automatic when another cells while fill and if this cells not fill then other cell not write time and date I want when i fill any cells in column1 automatic enother cells in column 2 will fill with time now and date DataGrid, or a DataGridView What events have you looked at there are many events (such as CellChanged) that will allow you to update another cell after updating a certain cell. Or are you having a problem with Date/Time formats What have you tried The top of the forum has an entry "how to get the ...Show All
Visual C++ Linking with extension dll
hi, I am working with a old project using VS 6.0. The exe uses an extension dll. I dont know how the exe is linking with the extension dll. I checked for the following 1. If the client exe has AfxLoadLibrary - for explicit linking. 2. If the import library is included in the client project settings linker option. 3. any # pragma statements which do the forceful linking. None of the 3 methods is used. Is there any other method to link an extension dll. I assume that extension dll also requires either implicit or explicit linking like regular dlls. Please Correct me if i am wrong. regards, sk80. & ...Show All
Windows Forms Capture & Replace Keystrokes
Hi, I want to create a Window Service that runs on the background and do one thing only; monitor the keyboard keystrokes and replaces certain characters with another defined characters when pressed. I decided this to be a Windows Service because I want it to work on any active application. I know how to build a windows service but not how to capture ...Show All
Visual Studio Team System Failed to load adapter
Hi, please help me, I permanently got the following message: TF53010: An unexpected condition has occurred in a Team Foundation component. The information contained here should be made available to your site administrative staff. Technical Information (for the administrative staff): Date (UTC): 5/5/2006 6:02:40 AM Machine: TFSBETA3R Application Domain: /LM/W3SVC/3/Root/Warehouse-3-127912825425748674 Assembly: Microsoft.TeamFoundation.Warehouse, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a; v2.0.50727 Process Details: Process Name: w3wp Process Id: 3136 Thread Id: 392 Ac ...Show All
Windows Forms right hand corner "OK" button handler
Background Information: I am writing a C# program and it is excuted in Pocket PC. Anyone know that Which function handles the right hand corner "OK" button in the title bar (in PDA) That mean when I press that "OK" button to close a form, actually the program is calling which function to do this close process Thank first~~ ...Show All
.NET Development Page refresh problem
Hi all I have got a typical requirement, where I work with 3 ASP.NET (C#) pages. E.g - PageA, PageB and PageC. PageB is opened on click of a button on PageA (with javascript window.open function) and PageC is opened on click of a buton on PageB (with javascript window.open function) . Now the issue is , I want on click of "Ok" button on PageC , PageC and PageB should close and PageA should get refreshed. My code is Response.Write("<script language='javascript'>{ window.opener.location=window.opener.location; window.close(); }</script>") ; But it can only refresh PageB. Is there any way to refresh PageA The buttom lin ...Show All
Visual Basic .MSI decompiler
Hello, I have a .MSI file from our Visual Basic .NET souce code that I would like to decompile in order to see how much information is revealed when the code is decompiled. Does any know of a free decompiler out there for this language Thanks. Have a look at the Orcas utility provided by Microsoft. You can download it from here: http://blogs.msdn.com/astebner/archive/2004/07/12/180792.aspx ...Show All
Visual C# trouble using delegate in WndProc
when i use delegate like this: ----------------- [System.Security.Permissions.PermissionSet(System.Security.Permissions.SecurityAction.Demand, Name = "FullTrust")] protected override void WndProc(ref Message m) { delegate_ReplyFromDataProcess = new PrepareDelegate_ReplyFromDataProcess(ReplyFromDataProcess); delegate_ReplyFromDataProcess.BeginInvoke(m, null, null); } delegate void PrepareDelegate_ReplyFromDataProcess(Message m); private void ReplyFromDataProcess(Message m) { IntPtr pnt = dp.OnReply(UInt32.Parse(m.WParam.ToString()), Int32.Parse(m.LParam.ToString())); } ----------------- i met the error: * ...Show All
