Dennis Pilarinos's Q&A profile
Visual C++ error LNK2001 while trying to make a dll file
I'm trying to make a dll. When I compile the cpp file, it compiles alright but when making the dll it shows these errors: Linking... Creating library Debug/ServerExtApp.lib and object Debug/ServerExtApp.exp ServerExtApp.obj : error LNK2001: unresolved external symbol "public: void __thiscall ServerExt::respond(int)" ( respond@ServerExt@@QAEXH@Z ) ServerExtApp.obj : error LNK2001: unresolved external symbol "public: static class ServerExt * __cdecl ServerExt::create(struct CEE_handle_tag const *,char const *,long,long *,void * *,struct CEE_handle_tag *,class ServerExt * (__cdecl*)(void))" ( c reate@ServerExt@@SAPAV1@PBUCEE_handle ...Show All
Windows Forms Datagridview and search
I got a search on my datagridview and I need to be able to pull the record up in the screen so that the user can see it. An example could be looking from an order number 30033 which is off the screen it finds it but you have to scroll down to it. I want the program to find it then go down to the record that is in the datagridview. Yes, the old DataGrid supports this. -mark DataGridView Program Manager Microsoft This post is provided “as-is” ...Show All
Visual Basic Delete Key
i am using a a textbox and a keypress method i need to capture when the user presses backspace or delete i have the backspace but i cant get delete as it does not call the keypress method. any help would be appreciated Handling the delete key and all the other keys such as function keys etc. use the keyup or keydown events Private Sub TextBox1_KeyDown( ByVal sender As Object , ByVal e As System.Windows.Forms.KeyEventArgs) Handles TextBox1.KeyDown If e.KeyCode = 46 Then MsgBox( "delete" ) 'Your code to handle delete key being pressed End If End Sub ...Show All
Visual Studio Team System How to test java scripts?
Our web pages are using java scripts.how can i test them If some customization I have to do pls provide the scripy for that. Thanks Golu The web tests in VSTS do not test client side java script. They test at the http layer. So basically, they simulate the requests which are sent to the server but do not simulate the java script code on the browser. If your java script is sending requests to the server that the web test recorder does not record properly, then you will need to insert those requests into the web test after recording is complete. Please take a look at the following white paper for more in ...Show All
SQL Server what is [SQL-DMO]
in computer management, when i expand the branch of my sql2005 express, i got a error message. it seems i cant register my server, but i cant login in sqlcmd i also installed sql2000, and it works fine... could anybody help really strange This will never work. You need to use Management Studio (full or Express) to connect to SQL Server 2005. We have a bug file on our side to determine why the server is being registered. If we fix the server registration problem, you still will not be able to connect to SQL Server 2005 through this means. Peter ...Show All
Visual Basic Unable to modify VS2005 Binding Navigator in the inherited Form
Hi! I put a BindingNavigator on a Form1 and set Modifier=Public. Then I created an inherited Form2. I put a BindingSource on Form2. But I cannot to set any value of inherited BindingNavigator because they are disabled. I need to set "BindingSource" property to the created BindingSource. Is it possible in other way than at run-time Stone Checked about this in Orcas march CTP and feature still absent!!! Hope Borland implement it in Delphi 2007. If so than we'll by their IDE. ...Show All
Visual C++ How do I get an Environment Variable?
I have 35 years of experience. I have mostly avoided the C world. when I've had to write in it, I've done OK in VS6. VS2005 C++ is so cantankerous. I'm writing a program that must run standalone so it's very lean and doesn't rely on high level code. I am in need of a routine that returns the value of the %windir% environment variable in string format. My project is set for a unicode build. Thank you Hi Renee, Umm, if we're talking about C#, maybe it is possible to use: System.Environment.GetEnvironmentVariable("windir") Which'll return a string with the value of the env variable in t ...Show All
Visual C++ NMAKE : fatal error U1052: file date.mak not found
I am self-coaching myself VC++. I don't get it error. Could someone tell me where I went wrong Much appreciated. Thanks in advance. Header file: #ifndef Date_dot_h #define Date_dot_h 1 // Address class using dynamically-allocated strings class date { protected: int year_; int month_; int day_; public: date(); date(const int& d, const int& m, const int& y); bool valid() const; int day() const; int month() const; int year() const; void set_day (const int& day); void set_month (const int& month); void set_year (const i ...Show All
Visual Basic Extending the Menu strip in .NET 2.0 to display text on a status strip label
I thought this was useful, its a extender i just wrote for the new .NET menu strip and status strip to extend the menu items to add a status message so when a mouse rolls over the item it displays the text on the status strip lable specified for the extender.. all you have to do is copy this to a code file, and add it as a control to your form. set the status lable property of the extender control then set the status mesages of the menu items and run it and watch it do its thing Imports System Imports System.Collections Imports System.ComponentModel Imports System.Windows.Forms <ProvideProperty("StatusMessage", GetType (Component))& ...Show All
Smart Device Development What is App.Config and how can I use it?
I'm having a problem with .NET CF1.1 SP3. When connecting to a JBOSS web app via webservice, I get a webexception. This appears to be caused by SP3 (this wasn't present when I was running bog standard 1.1). Apparently... through research it looks as though the following is occurring: Q: Why do I receive a strange error message when debugging my Web Services client which talks to an Apache web server A: The problem here is that when using the debugger to connect to a web server then a custom HTTP header named VsDebuggerCausalityData is emitted into the call. Now some 'well configured' web servers (like Apache) do not accept HTTP ...Show All
SQL Server WMI Configuration?
Hi All, I tried to install SQL Server 2005 Developer Edition RTM version and SCC failed with the message: "The SQL Server System Configuration Checker cannot be executed due to WMI configuration on the machine mymachine Error:2147749917(0x8004101d)." Looking on SQLSetup0032_mymachine_SCC.log I have: " Processing article WMIServiceReadRegWorking Scc Error: 50024 (0xc368) Error code: 2147749917 (0x8004101d) Calling callback function for reason: 0x2 Callback function returned TRUE " I have tried recompiling all WMI classes, chaging WMI DCOM permissions, changing security with WMI snap-in and nothing this solved the problem. (T ...Show All
Windows Forms Background thread accessing main thread controls
Hi, In my form load I am creating a background thread which listens on a particular port for some message. When a message is received, I have to refresh the form display for which I have to access some controls of the form's thread. When I try to access these controls I get a cross threading exception. Can someone please point out a workaround for this. Thanks & Regards, Kunal Here is an example: http://msdn.microsoft.com/library/default.asp url=/library/en-us/cpguide/html/cpconDevelopingMultithreadedWindowsFormsControl.asp ...Show All
Windows Forms Datagridview Columns Order
Does anyone know how to iterate through a rows cells in the order they appear in the bound datagridview For example, when I start the program I have ColumnA as the first column, I then move that column out of the first position, to 2nd position or 10th position doesnt matter where, I than do a simple check like so "me.text = datagridview.columns(0).Name" and even tho it is no longer in the first position, ColumnA is still considered first in the collection, therefore the result of the simple check remains ColumnA. I understand I believe why it does this, but I need to know if there is anyway to get the columns position base ...Show All
SQL Server Sql Server 2005 Beta 1 to Beta 2 conversion error
hi, I have database backup from SQL Server 2005 Beta 1, Now I have SQL Server 2005 Beta 2. If I restore the file to Beta 2 using the following command RESTORE DATABASE [Dbase] FROM DISK = N 'C:\Inetpub\wwwroot\Dbase\Guilde' WITH FILE = 1 , NOUNLOAD , STATS = 10 GO it shows the following error : Msg 3169, Level 16, State 1, Line 1 The backed-up database has on-disk structure version 563. The server supports version 587 and cannot restore or upgrade this database. Msg 3013, Level 16, State 1, Line 1 RESTORE DATABASE is terminating abnormally. If any one know how to solve this problem, pls rply Muralidhara mur ...Show All
SQL Server Report Viewer webpart -- Custom development
Hi I was wondering if there is a way allowed for us to use the Report Viewer webpart that is shipped as a part of Reporting Services SP2 and then override certain properties/settings in it. What should my new reporting webpart inherit from Any samples/pointers would be very appreciated. Thanks Yes Kannan i actually researched and did what you are looking for and it worked .. Although i use the webpart in WSS v2 see this article at:- http://aspalliance.com/729 Hope that helps ...Show All
