bombdrop's Q&A profile
Visual C++ ComboBox AddString()
I used the vc++ resource manager to create a combo box on the program's main form. I would like to use AddString() at run time to fill the combo box with a list of valid selections. But, the AddString() function requires a (CComboBox*). The resource manager created the combo box, but never told me the name of the variable, only the name of the ID (in this case, the ID is IDC_VAR_NAME). How do you make the connection from ID to (CComboBox*) I also have been using VS2005 and not being able to set the drop down size for CComboBox. It is quite a pain - the items exist but there is no way in the designer to set the drop down height! At leas ...Show All
Visual C++ Importing class from dll
Hi My problem is that I cannot import a class from a dll without an import library. Thank You, Attila. Just a few more details: I have found, and can use LoadLibrary, GetProcAddress etc. functions, but only for importing functions. What is the name of the function I should use instead of GetProcAddress for importing classes from my dll thanx, Attila ...Show All
Visual Studio Express Editions enum or typeenum
Hi, I have an application in Visual Studio Express 2005 and want to use enum or typedef enum but it gives me the following mistake: error C2143: syntax error : missing '}' before '(' fatal error C1903: unable to recover from previous error(s); stopping compilation the code is: enum AdoEnum { ado_UNKNOWN = 0, ado_SQL, ado_ACCESS }; Which it is the mistake , This works fine in evc ++ 4.0 Is there a chance that any of the defined names is reserved What is the code above the enum definition AdoEnum seams to be candidate for this, from my point of view. ...Show All
Visual C# Distribution and .Net Framework
For the last month i had been working on a sudoku game. Was using VB 2005 express edition. After all was done, tried to pass it on to others. Then only got to know that .NET framework should be loaded on the other PCs also. Then I read somewhere on net that if you use Visual C#, ou dont face this problem. I tried converting my project, but even in Visual C# its giving the same "Initialisation error 0xc0000315". So wat is the solution for me. My program is only 2.5 MB. It makes no sense to attach a 20MB .NET framework file along with it (no ones's going to bother downloading my program). How can I make a stand alone program. L ...Show All
Visual C# dinamicly memory allocation..
does c# supprt dinamic memory allocation like c++ how Thanks! You allocate everything with the new keyword. That's how whatever objects are being allocated. Depends on what kind of data you want to store. If you want something similar to a traditional memory buffer you may use something like this: byte[] buffer = new byte[BUFFER_SIZE]; That creates an array of bytes, see MSDN about C# arrays to find out more. Generally: MyType[] buf = new MyType[1024]; Holds 1024 instances of MyType. The garbage collector decides how the buffer will be allocated and when it will be disposed. If you want to deallocate you object ...Show All
SQL Server SQL 2005 Management Studio Timeout expired
I get the message - "Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding" - when working with large tables in Management Studio. I have tried changeing the following: 1) Selected Tools -> Options 2) Expanded the "Query Execution" node 3) Clicked on "SQL Server" 4) Set value for "Execution time-out" to 0 and various numbers up to 1800 Also checked the following 1) In Object Explorer I right-clicked on the server and selected "Properties" 2) Selected the "Advanced" page 4) Set the value ...Show All
SQL Server Error while restoring database,
Hi, Im trying to restore a database, when i try to restore by selecting the file groups option it gives me an error Microsoft SQL DMO The backup set holds a backup of a database other than the existing database. RESTORE DATABASE terminated abnormally. I tried deleting all the tables and the stored procedures that are there, but it still gives the same error. I was getting the following error and ur solution worked fine here, Thx a lot! "The backup set holds a backup of a database other than the existing database." ...Show All
Visual C# Assembly --> GetCustomAttributes() empty return problem
Hi, I'm having a problem where whatever attribute I check, it's always being set as an empty string. The version is the only one that returns correctly. The following is my AssemblyInfo.cs [assembly: AssemblyTitle("myTitle")] [assembly: AssemblyDescription("Responsible for syncing the data with the web service")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("myCompany")] [assembly: AssemblyProduct("product")] [assembly: AssemblyCopyright("2004, 2005")] [assembly: AssemblyTrademark("")] [assembly: AssemblyCulture("")] Example of me checking the title (.Title is empty string): ...Show All
Visual C# Windows Look and feel
I'm developing a windows application and I want my interface to have that windows look and feel. I tried changing the background colors, but i did not get what I really wanted (You know the way Microsoft word 2003 looks [the bluish look and that glossy feel] or the way this forum looks like). I also want to change the background of the menu bar and the menu items to get the same windows look and feel. Lastly, I want to add icons to the menus and menu items. I need help or references to resources that can let me do that. Many thanks, Derry Thanks for your help. I've tried all the various options suggested and not seen w ...Show All
.NET Development problem with a reparse point
Hi, I'm getting crazy with this. To create a reparse point I need to feel this structure according to the doc: [StructLayout(LayoutKind.Sequential,Pack=4)] public struct REPARSE_DATA_BUFFER { public uint ReparseTag; public short ReparseDataLength; public short Reserved; public short SubstituteNameOffset; public short SubstituteNameLength; // how many bytes the PathBuffer contains public short PrintNameOffset; public short PrintNameLength; [MarshalAs(UnmanagedType.LPWStr)] public string PathBuffer; } I ...Show All
Visual Basic Object invoked has disconnected from its clients ERROR
Hi everyone.. Im working on a VB6 migration to .Net and Im getting a very strange error. Heres part of the code im executing and where the error is thrown.. I got a form where a message is shown in screen for the user to track what operations the main applications is running.. the routine is in my VB99_loadingScreen. VB99_LoadingScreen.DefInstance.Message("Reading Tag Configuration for Smart Devices") My form has the next routine where the message is shown. I use doevents to keep other part of code executing... Public Sub Message( ByVal sMessage As String ) If Visible Then lblMessage.Text = sMessage ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Method of plotting 2D grid
Hi. I have a question. How would I plot 2D grid It's got to be infinate but without any performance loss. Will this work To show you wnat I mean, download a trial version of 3D GameStudio and open GameStdudio in 3D GameStdudio, located in the Program group. And one more question. Since I'm going to be developing an authoring suite along with an engine, in an application (world editor) with 4 windows, would it be possible to have 4 D3D child windows with just one device Or do I have to create a device per window Each of the child windows will have Top Right Back 3D The four windows will have to be in sync. Here's the table ...Show All
Smart Device Development resgen error -1163019603 while building App.
I converted a 'old' 2003-project into vs2005 Team version When i try to build the app i get this error : "resgen error -1163019603" and no Exe is build does anybody know this error code and probaly how i can solve this problem thanx I have the same problem can u help me in my prob. and how can i solve it... ...Show All
Visual Studio Express Editions BCP -SQL Server Express
Anyone able to BCP into their SQL Server Express database Im having some probs trying to get some data into a local server. tbh im a bit confused by the security model, especially given that its running on XP Home. I understand that by default all XP Home users are machine Admins So all users should be able to connect to the local SQL Server via Windows Authentication If I can fire up SSMS-EE and connect via windows authentication I assume that if I BCP I can use the -T to connect via a trusted connection Also, how do you reference the server, can you use 'local' or the named instance COMPUTERNAME\SQLEXPRESS or just C ...Show All
Windows Forms Update Data With EndEdit and Validate
Friends, Two questions, hopefully both easily answered. First, here is a small piece of code I pulled from MSDN to add records to a data source from a form. this .Validate(); this .myBindingSource.EndEdit(); this .myTableAdapter.Update( this .fleetDataSet.myTable); First question is: What is the Validate() method supposed to do I can find nothing on this one. Second, what do I need the EndEdit method for The pathetic little description of this method in MSDN library says, "Applies pending changes to the underlying data source". Isn't this actually accomplished by the update() method in the third line My particular ...Show All
