Hooper's Q&A profile
Visual C++ where the vtable memory will be sotred?
hello , where the vtable memory will be created . Virtual functions callings are resolved at runtime . but when i write the class which has a virtual functions iam getting the size of the class = data + vptr but where the vtable memory is stored When you make any function virtual, the compiler will insert a vptr inside your class. As a result, the size of the class will grow by 4 bytes (on Win32).This pointer holds the address of the virtual table (vtable). vtable is constructed by the compiler at compile time and is basically nothing but an array of function pointers. The function pointers are actually pointers to the virtual functions of that particular class. To be more exact, the vi ...Show All
Visual C# Visual Studio 2003.NET bug -- can't embed resource *.cs.dll
Not sure if this is the best place to report bugs, but I'll give it a shot. I was recently implementing a C# tool that talks to Adobe Photoshop through a COM interface. I decided to embed the COM interop assembly as an embedded resource, and because I'm working with Photoshop CS and CS2, I decided to rename "Interop.Photoshop.dll" to "Interop.Photoshop.CS.dll". This was working fine for my "Interop.Photoshop.CS2.dll" file, but for some reason the CS version wasn't working. Turns out you can't embed resources whose filenames end in ".cs.dll" -- they silently disappear into never-never land and will not show up through Assembly.GetManifestResourceNames. What's more, other embedded resources may also ...Show All
Community Chat What version of vista are YOU getting?
So, out of all of the editions, Home Basic, Home Premium, Business, Enterprise, Starter and Ultimate , which are you getting I am going to get Home Premium because it seems like it has mostly everything I would need. Comes with mostly everything except backing up software which you can just download. So, what are you getting I'm going for the Ultimate. I'm going to needed it, for everything I need to do. Now here's to hoping I'll find an OEM that will include it on a system of theirs... (why do I doubt this) ...Show All
Visual C++ SetCheckboxValue method
Hi, When i try the SetCheckboxValue method i get a compile error saying identifier not found... This is the actual code i get the error at: SetCheckboxValue(IDC_mycheck, true ); Any ideas Cheers Anger. Hi. I think that you use an Interface "ICredentialProviderCredential::SetCheckboxValue Method" for Set checkBox; that exists in WinSDK. http://msdn.microsoft.com/library/default.asp url=/library/en-us/shellcc/platform/shell/reference/ifaces/icredentialprovidercredential/setcheckboxvalue.asp for use this Interface you must initialize a COM. like this : #include "Windows.h" #include "wininet.h" #include "shlobj.h" using namespace std; int main() { HRESULT hr ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Do most SDKs do grapics, such as 3D?
As far as Managed Direct X, and Visual C# Studio Express,with XNA, do those have a way of creating the actual graphical interface for the game, such as 2D or 3D, or do I need Adobe Photoshop, or Maya, or some other program I currently havn't been able to download them because I am temporarily on dial-up internet, which also makes me not want to do too much looking aroudn, due to long loading times. Thanks for any help you can give me. Paint shop pro is dirt cheap because it keeps changing owners, but it does 90% of what ps does and more stuff ps does not, only the work flow is very different for some things and bevels and such still are not where they need to be. Though the first time you paint with a pattern your going to scratch ...Show All
Visual Studio How to get an application instance defined by the method OnConnection of an Addin towards an VS Application ?
Hi all, I have a problem to get the application instance defined in my addin ex : Public Sub OnConnection( ByVal application As Object , ByVal _ connectMode As ext_ConnectMode, ByVal addInInst As Object , _ ByRef custom As Array) Implements IDTExtensibility2.OnConnection _applicationObject = CType (application, DTE2) _addInInstance = CType (addInInst, AddIn) End Sub I want to get this attribute in an other VS application (ex : Windows Application). In my addin (EVA_CAT) I defined a shared property to get this attribut ex: Shared _applicationObject As DTE2 Public Shared ReadOnly Property AppObjt() As DTE2 Get Return _applicationObject ...Show All
SQL Server "Synchronize Connection Strings" Dialog box with XML Config file
Hello, This has been happening to me since I started using Configuration files. I use one XML config file that stores Machine Specific settings and one connection string to my Metadata database. The problem is the database connection. When I set the conection in the Configuation file, save, close and reopen the package, a dialog box opens with the title "Synchronize Connection Strings". To reproduce the problem: 1. Ceate New SSIS Project 2. New Data Source Localhost.Adventureworks 3. In Package.dtsx create an New Connection from Data Source... 4. Choose AdventureWorks 5. Save Package 6. Close Package 7. Open Package There is no problem at this point. 8. Enable Package Configurations 9. Create a new XML C ...Show All
SQL Server Report from prcedure that return multiple recordsets
Hi there, I am creating a report from a stored procedure that returns multiples record sets. For an example, my stored procedure is as follows CREATE PROCEDURE MYPROCEDURE AS BEGIN SELECT * FROM TABLE1 SELECT * FROM TABLE2 SELECT * FROM TABLE3 END Now lets say I want to create a report that will display the result of the query no 2 (which is SELECT * FROM TABLE2 in this example). How can I do this Is there any way to bind the second record set to the report dataset with out changing the stored procedure I will appreciate any kind of suggestions on this Thanks Moim Suresh, Thanks for your reply. But I am sorry I dont have a chance to modify the Stor ...Show All
Visual Studio Express Editions calling base to base class method
Hi all I struct with a problem, plz help me to find it out. I've three classes A, B, C in the same hierarchy, i.e. Class B drived from Class A and Class C drived from Class B. Now Class A has a protected virtual method X() that is inherited in the Class B as protected override X(), now from class C if I write base.X(), it'll access Class B's X(), but I want to access Class A's X() Plz help me whether it is feasible or not, if feasible the what's the exact version specific url through which I can access the Class A's X() Rgds, Mukesh I'm sorry to say, but there is no way you can do that. You can't call i.e. base.base.X(). I guess you could argue if that's good or bad. But if you thi ...Show All
Visual Basic Programming Languages
Hi, I'm relatively new to programming, and Visual Basic doesn't seem to be that good of a language, and not that much used in real applications. I want to move onto a different language, one that is very popular, can do almost anything, and can be and IS used in professional applications. Another important factor is platform compatibility. Java provides that, but Java isn't that popular for Windows, and Windows is my primary target. C++ works, but I have a couple of questions: 1) Can C++ be used on any OS Is it a good language to use as my primary language 2) Is C# going to replace C++ Does that work on other OS's C# is newer, and so I'm thinking maybe its the new version of C++ that's going to replace it, as xhtml is probably going to do ...Show All
.NET Development DllImport Issue
I am currently trying to make use of a .dll file that was written in C++ in one of my vb.net 2005 applications. Initially I thought I could simply add the file as a Reference to my project, however, I found this didn't work because the .dll was not written with managed code. After a little research I found I could accomplish this task by using DllImport. I wrote the following code to test this: Private Sub Button1_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim InputRecords As New ArrayList Dim CmpltCheckFlag As Char Dim OutputRecords As New ArrayList Dim MessageRecords As New ArrayList Dim ReleaseList As New ArrayList CmpltCheckFlag = &q ...Show All
Windows Forms Print Preview problem
Hey, How would I make it so that the print preview will show what is in the current textbox I have a PrintDocument control with the Document Name property set as: document All my print controls have the document property set to the PrintDocument control. But I need to know how to actually set it to show the current textbox... Because my program is tab controlled this is how I get the current textbox: RtextboxUC thisrichtextbox = GetCurrentTextBox(); And so if you use thisrichtextbox. It applies whatever it's doing to the current textbox being used... Thanks :) ...Show All
.NET Development SOAP elements in reverse order of WSDL
I am adding a web reference to a visual studio 2005 project which returns the WSDL below. When I invoke the webservice the actual SOAP message that is created has the sequence of the firstname element and last name element in the wrong order (see attached SOAP message). I haven't seen anything that would allow me to change the order which is required as the web service is expecting it in the correct sequence. WSDL < xml version = " 1.0 " encoding = " utf-8 " > < definitions xmlns:soap = " http://schemas.xmlsoap.org/wsdl/soap/ " xmlns:errMsg = " urn:stc:egate:jce:JavaException " xmlns:outMsg = http://xx.xxx.xx.xxx/repository/eai3_rep511/Server2/_TestWebSvc_JCD/prjPedigree/eai3_rep51114a70bf:10e1de ...Show All
Visual Studio Visual studio 2005 and windows vista buisness edition
I have windows vista buisness edition, visual studio pro 2005 and when I'm trying to create new web application I get error: front page extensions are not installed..., I activated windows authentication and I'm running vs2005pro as administrator, but the error still ocurrs. I know, that here have already been topic about this, but this solution doesn't work for me ;/ Do you get an error immediatly after clicking on File => New => Web Site If not, what options did you select on the dialog that opens Like the location (File System, HTTP, FTP) ...Show All
Visual C# how to save something in my application...
this application help me to save time opening alot of other application . by add applications I want to open in a list and open it all by one click .. the problem is how can I add application and save it , so when next time open the applicatin it still in the list ... e.g. app=app1&app2&app3 i want to add app4 to the list... so app become app=app1&app2&app3&app4 next time when run app >> the four another apps is still there in the list this is my code up to now using System; using System.Drawing; using System.Collections; using System.ComponentModel; using System.Windows.Forms; using System.Data; namespace ...Show All
