rako77's Q&A profile
Visual Basic .Net Component in VB6.0
I have created a .net component and compile it with “Register for COM interop option” and used this component in VB6.0. Its working perfectly fine while tested locally. I created a package for the VB6.0 application and installed on a separate machine. It’s installed successfully. While I run the application it throws exception - ActiveX component can’t create object. Please Help! Assempbly is in the APPPath directory. And the remote machine will not be having the .Net Framework. I was able to fix the issue using regasm where remote machin has .net framework. Please Help ...Show All
.NET Development AccessViolationException with C# Ping class
I have a "watchdog" program, c# console application, coded with VS 2005. Program runs every 3 minutes. And one part of program checks pings to ~20 ip's. I'll give that function code: static private bool ping ( ref String ip) { bool success = false ; Ping pingSender = new Ping (); if (pingSender.Send(ip).Status.Equals( IPStatus .Success)) { success = true ; } else { success = false ; } return success; } Usually this works.. but sometimes (once a day on the average) it throws an exception and program crashes: Unhandled Exception: System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt. I checke ...Show All
.NET Development Can we sent multiple mail to one or more persons....?????????
Hi Friends, I have a question regarding send mail. We can send a mail to multiple persons . But I need to send multiple mail to one or more than one person . Is it possible in web development If yes, please reply me. Regards, Vijay Modi Hi Ashish, Thanks, How is it possible And so why Yahoo, Msn, Gmail, Rediff, etc.. not providing this type of facility to send multiple mail to Single Person / Multiple Person at a time If this is possible thats the best to forward multiple mail to a single/multiple persons. Please can u give me any link where this happening. Regards, Vijay Modi ...Show All
.NET Development Lost data packages using HttpWebResponse
Hi all, I've got a pretty difficult problem in my application using the HttpWebRequest and HttpWebResponse classes. In the last eight weeks, I didn't found anything to solve my problem, so it would be great, if there's anybody out there who can help me. Now, here are the facts: I'm using the HttpWebRequest class to send an OCSP-Request (RFC 2560) to an OCSP-Responder via HTTP. The Request has the Content-Type "application/ocsp-request". The data (ASN.1 encoded binary data) are send using the POST-Verb. (by the way: the connected server only supports HTTP1.0). The problem encounters only if the OCSP-Response has a Content-Length, that enforces the underlying network protocols (or perhaps some proxy servers) to separate th ...Show All
Visual C++ Rearding DSN establishment
HI friends! Can anybody tell me what the following setence mean. strConnection.Format(__T("Driver={Microsoft Access Driver (*.mdb)};Dbq=%s;Uid=;Pwd=;"), strFilename); //_T is for unicode conversion In my project the authentication is happening during this.Please explain what is Dbq and how can we know whether a vc++ application is dsn oriented or dsnless Regards, sanath. DBQ is the place where you put the database file itself, ( a path to the *.mdb file ). in the above code 'strFilename' just points to the string that contains the path to the database file. ...Show All
Visual C++ C++ Generics issue
Hi. I'm having a problem converting some C# to C++/CLI, which involves generics: //// C# code (compiles and runs): ///////////////////////// // The constraint requires the generic parameter T // to be convertable to the type of the derived class: public abstract class MyBaseT<T> where T : MyBaseT<T> { public MyBaseT() { } } public class MyDerived : MyBaseT<MyDerived> { } //// (equivalent ) C++/CLI code: //////////////////// generic<typename T> where T : MyBaseT<T> public ref class MyBaseT abstract { public: MyBaseT() { } }; public ref class MyDerived : MyBaseT<MyDerived> { }; /// Compiler error: Error 1 error C3393: syntax error in constraint cla ...Show All
Visual Studio Tools for Office Adding a macro to excel using C# in asp.net
I am creating a customized excel report for my company using a webpage. Part of the excel file is a macro to handle printing though, and I can't seem to get it to work correctly. The code works... The page building the report impersonates a user that has access to Excel. Excel files can be created but, when I attempt to add the print macro I recieve this error: Programmatic access to Visual Basic Project is not trusted The user being impersonated has the security setting in excel set to: Trust access to Visual Basic Project I discovered on accident that if the impersonated user is actually logged in on the server that the code executes as expected, every time. If you have any idea how to correct this problem please let me ...Show All
Visual Basic Problems using a VB6 usercontrol in .NET 2005 - can't find interface, and unable to create from progid
I'm having some problems in trying to upgrade a VB6 application to VB .net 2005 - I hope someone can give me an idea where to look: The basic upgrade process worked fine, but I'm having trouble with some VB6 / .NET interoperability. The part of this application I'm having trouble with has to create ActiveX controls from their VB6 progids. The old VB6 code used to create these activeX controls dynamically from progids using "controls.add". In .NET, I have tried converting the "controls.add" code to the following, where progid refers to a vb6 user control. (Note that there are a load of these controls which all work perfectly well and I really dont want to have to upgrade them to .net!) When I run the code ...Show All
SQL Server Help with Sending file to server using ftp task
Doe anyone know how to do this. I keep getting an error remote path missing "/" but it doesn't contain a "/". Mike That's what I have had to resort to at times also. Some of the FTP task functionality just doesn't seem to function like it should. ...Show All
Internet Explorer Development GET data affecting margins
Hi all, I have an utterly bizarre ie bug for you that i have never seen before... I'm currently creating http://dev.nano2hybrids.net and when viewing the site in internet explorer there is a ~5px gap at the top of the page. This isn't so strange in itself, but when any rubbish get data is added to the page url, it dissapears! Even a single does the job (see http://dev.nano2hybrids.net/ ) I initially put a negative margin in an internet explorer only stylesheet, but when there is get data, the page moves up and the top is hidden. All css padding and margins and the rest are set to 0, and the page displays fine in every other browser that i have tried. I have personally never seen this before, and can't find anything on the web about ...Show All
SQL Server Maintenance Plan after upgrade
Okay... here's my issue I got a Win2k3/SP1 server, where I used to have SQL 2000 on it, upgraded to SQL 2005/SP1 everything seems fine, database access is working just great, thought, I'm trying to create a full backup schedule for the databases I have using the maintenance plan wizard, but I keep on receiving this error, anyone can help :/ Nothing to do with the upgrade. I am running SQL Server 2005 Developer edition on an XP professional box and get this message when I try to create any maintenance plan. ...Show All
Visual C# How do I get the application directory
hi there, how do I get the application directory. that is, the directory of the running application as a string Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingPath()) ...Show All
Windows Forms AddNew in Navigation Bar - want to autofill data in bound fields
I need to autofill a field on a data entry form after I click the "addnew" button on the Navigation Bar. (The one that is automatically generated by 2005 when I add the dataset's fields to a form.) I use the following code in a button_click function to make sure it worked, and it did. (custStr a global variable with the value I need) CustomerTextBox.Text = custStr But when I move it to this function, the value (of the CustomerTextBox.Text) filled in is blanked back out. (or never filled in at all ) Private Sub BindingNavigatorAddNewItem_Click I assume that the function above is performed before the fields are "reinitialized" and blanked out and that is why it is wiped out. So, is there a function performed ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Managed C# performance loss.
I caught some people quoting managed performance loss at only 2% (over unmanaged). I am just curious how accurate that assessment is. Last time I was looking into it, DX programmers were quoting 90% of managed performance as a BEST case scenario. (usually much lower) If the margin has grown so low, is there any large scale games developed using C# i guess the real question is, if you had the exact same amount of time and resources to create a project in C# XNA and unmanaged C++ directx or openGL, which would be a better quality product when the time ran out What corners would you have to cut in unmanaged code to meet the requirements Who knows, it hasn't been done yet. So we just have to sa ...Show All
Visual Basic Where is the Fill() method?
I am trying to add new rows to MyDataBase.mdb with the below code. My problem is that it does not identify the columns. It fails with the error message “Name1 does not belong to Customers”. But it does so do Name2. I think it’s locating the database and table as I can retrieve data with the open code using SQL Select. Can anyone help Please hemo Dim connection As New OleDbConnection() Dim myadapter As OleDbDataAdapter Dim myDataSet As New DataSet Dim newrow As DataRow Dim MyTable As DataTable &nb ...Show All
