CharlieL's Q&A profile
Visual C++ Name mangling problem in static library
This question was already asked (thank you, Alexiski) in another thread, but I decided to describe problem in detail. There is third-party static library project compiled in VC++.NET 2003 and exporting some classes. When I am trying to use it in my Windows Forms.NET application (also VC++.NET 2003) linker give me an error: LNK2001: unresolved external symbol "public: int __thiscall CRemoteModbus::openConnection(class ATL::CStringT<char,class StrTraitMFC<char,class ATL::ChTraitsCRT<char> > >,unsigned short,unsigned long)" ( openConnection@CRemoteModbus@@$$FQAEHV $CStringT@DV $StrTraitMFC@DV $ ...Show All
Windows Forms ClickOnce Deployment Questions
Hi, I have a couple of problems relating to clickonce deployment that I was hoping someone could spread some light on. Problem 1: I upload version 1.0.0.1 to my server and user A downloads via clickonce link, this version includes the DB (MS Access) in the data directory. I then discover a bug (not likely I know :-)) and fix this in version 1.0.0.1. I publish this new version but this time have to exclude the DB as I do not want to overwrite user A's data. User A opens the application is presented with the new version, they download and everything is ok, the database file is copied from the previous deployment to the new deployment. ...Show All
Visual Studio 2008 (Pre-release) DataTemplate with Viewport3D using a StaticResource
Why won't this DataTemplate work < DataTemplate x:Key = " 3DItems " > < Border BorderThickness = " 1 " BorderBrush = " Black " > < Viewport3D Width = " 50 " Height = " 50 " ClipToBounds = " True " > < Viewport3D.Camera > < PerspectiveCamera FarPlaneDistance = " 50 " NearPlaneDistance = " 1 " FieldOfView = " 90 " Position = " 5, 2, 15 " LookAtPoint = " 0, 0, 0 " Up = " 0, 1, 0 " /> </ Viewport3D.Camera > < ModelVisual3D > < ModelVisual3D.Content > < Model3DGroup > < AmbientLight Color = " #FF7F7F7F " /> < DirectionalLight Direction = " 0,-1, ...Show All
Visual C# Combobox inside datagridview
i this is my first post here. i have that problem: i have one DGV with combobox inside, i cant put the combobox to fill vertically, on my cell. text was good on the middle but the bluearrow icon have the original height. how can i streatch the blue arrow icon with the same heigh then the cell height regards; Miguel Cruz miguel.cruz@mdc.pt ...Show All
Windows Forms How to change size of the selected row in DataGrid ?
Hi all, I am new in C#. I want to change the size of the selected row in DataGrid. Can anybody help me. Thanks in advance. ...Show All
Visual Studio Express Editions Locating Files Within An Application's Directory Structure
Hello All, I am wondering if there is functionality within .Net to scan an application's installation directory and any sub directories in order to find a particular file or files. What I am trying to accomplish is to have my application scan for the location of it's database files the first time the application is run so that these paths can be stored automatically for the application to use later. I have done this type of thing before using Win32 API calls but if .Net provides mechanisms that will suit my needs I would rather use them. Thanks In Advance For Your Assistance V. Shane Curtis Don't k ...Show All
Visual Basic Selecting datagridview cell
I am totlly newbie in vb.net and want to find out how can i utilize the datagridview tool here. I wanted to know how can i pass the content of a ceratain cell in datagridview on a click event to a textbox...thanks in advance. You can refer to the columns by index or by name. Textbox1.Text = Me .DataGridView1.Rows(0).Cells(0).Value Textbox2.Text = Me .DataGridView1.Rows(0).Cells( "ColumnName" ).Value These are simply using index values to refer to the rows and cells. There are collections of selectedrows, selectedcells, selectedcolumns. So it really depends upon which "ce ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Why is managed DirectX using classes over interfaces?
Hi, I'm wondering if anyone can answer the above question Why are method calls going over classes rather than interfaces I would have thought that each managed assembly would still use interfaces from class factories rather than using explicit classes in a namespace. Doing so would mean that your application would not break when new versions are released. E.g. ILight9 light = new Light9 (); light.LightType = LightType .Directional; … instead of how it is in the Feb ’06 of the SDK: using Microsoft.DirectX.Direct3D; Light light = new Light (); light.LightType = LightType .Direction ...Show All
Visual C# How to get instance ID of object
In VB6 I can use ObjPtr to get object pointer. In .Net how to get it The advice is to use a custom override for the GetHashCode() function in ur own classes to ensure that it is unique: MSDN Content : This method can be overridden by a derived class. Value classes must override this method to provide a hash function that is appropriate for the class and that ensures a better distribution in the hash table. Classes that might be used as a key in a hash table must also override this method, because objects that are used as keys in a hash table are required to generate their own hash code through this method. I guess there is no ou ...Show All
Visual Basic Changing screen resolution with VB 2005
I'm having a difficult time converting a Windows API call that works fine in VB6 to run in VB 2005 (Windows XP with SP2 in both cases). I reduced the problem code down to its core which is below. I'm trying to change the screen resolution with the ChangeDisplaySettingsEx call; the idea is that on entering the program it shifts to high resolution and at the end it restores the original settings. I left the restore part out because I get the same error. Which is "An invalid parameter was passed in. This can include an invalid flag or combination of flags." I'm trying to use exactly the same parameters, but somewhere in the conversion ...Show All
.NET Development A stored procedure can be created correctly in Beta 2, now it doesn't be created correctly in Microsoft Visual Web Developer 200
A stored procedure can be created correctly in Beta 2, now it doesn't be created correctly in Microsoft Visual Web Developer 2005 Express Edition, why This stored procedure (only part code) can be created correctly in Beta 2, but now it doesn't be created correctly in Microsoft Visual Web Developer 2005 Express Edition, I get a error information below when I try to create: XQuery [cw_Bookmark.Bookmark.value()]: 'value()' requires a singleton (or empty sequence), found operand of type 'xdt:anyAtomicType *' I think there are some changes in final edition SQL 2005 about XQuery language, how can I fix this error! Many Thanks! ...Show All
Visual Basic Please help with Process close and saving, also timer.sleep use
Hi, I want to be able to control a program through a vb.net window app (start, manipulate, close, and save) that has a form with a button to intiate it. As a first step I am experimenting with notepad to get the code down. I can easily create a window app that can start notepad, write a few sentences and then close notepad but focus is then immediately returned to my windows form and my subsequent sendkeys (tab & enter) that were meant for the save message box that comes up happens on my form instead. How can I shift focus back to the notepad's save message box (instead of my form) so that I can also save the file using sendkeys Here i ...Show All
Visual Studio Tools for Office Excel Designer cannot be activated
After I installed VS 2005 and VSTO I upgraded my Office 2003 to Office "12" Beta 1. I uninstalled Office "12" later and installed Office 2003 and SP2. I tried to create a Office application (excel workbook) and VS says "the project cannot be created". I uninstalled and reinstalled VS 2005 and even re-run VSTOR.exe but the problem persists. When I try to open an existing Office project, the project opens but when I try open a designer file VS says "Excel designer cannot be activated" Anyone had a similar problem Are there any fixes Thanks, Onur Gorur Tried the previous procedure and it didn't work. I fi ...Show All
Visual Studio Express Editions Q: What is the modules
hi, i'm new and i want to know what is hte differece between classes and modules , and when to use modules, thx shakalama wrote: hi, Thx guys for answering me, actualy i know visual basic through my previous experiance with Asp 0.3 b4 asp.net appears, i don't know that much about classes or those thing i'm still learning it. but to be more specific here its what i'm asking about. actualy i'm working in my first program but it turned to be a jungle of code lines, even it became very hard to find things , every thing in my class depend on the same datasource that i keep editing all the time by that progra ...Show All
.NET Development Verifying User's Internet Connection
I am looking for a way to verify whether the user's computer has a valid internet connection. Is there a function in .Net that will allow the underlying Windows internet connectivity detection to be checked Or do I have to hack something together like running a ping internally Any ideas of suggestions are greatly appreciated. ;) While there is a way of determining if the system has a network connection, there is not to my knowledge a way of determining if there is an actually Internet connection without actually testing for a connection. That's because until you actually test for such a connection, you have no way of kn ...Show All
