GrandpaB's Q&A profile
Visual C++ Visual C++/CLI
Hi all.Is it fine if i use visual C# .net tutorials and resources for creating windows forms apps and incorparate the code into C++/CLI .net I mean, C++/CLI uses the .NET Framework also to create windows forms apps right So the only thing to change is the syntax(the "." to "::" or "->", variable declarations, conditional statements, classes etc etc) if i am correct here. Meaning whatever ever code in C# has been written e.g: to make a paint prog, i could just change the variable declarations,ways the functions are declared, and other things like that involving the language syntax, correct Help would be appreciated :D Thanks You'll probably start seeing m ...Show All
Visual Basic convert into .NET 'Any' datatype from vb6 to char *szFilename in C++
Moving vb6/C++ into .NET 2.0 and using upgrade wizard as place to start. What do I do with this 'ByVal szFilename As Any' to 'char *szFilename' conversion in .NET I will be wanting to leave the c++ dll as is. It's the 'Any' datatype I am puzzling over. What do I change that to Thanks. -greg ********vb6 interface code**************** Public Declare Function foo _ Lib "foo.dll" _ (ByVal szFilename As Any) As Long ******** C++ dll **************** int EXPORTED foo(char *szFilename); You need to do: Public Declare Function foo Lib "foo.dll"(<MarshalAs(UnmanagedType.LPStr)> ByVal szFilename as String) As Integer Hope this helps, ...Show All
Visual Studio Deployment - I can't find the template
Hi, I am a DSL - newbie! I just made the walkthrough 'Deploying a Domain-Specific Language'. I tried it several times but after the installation (no errors so far) the template does not appear under Templates in the Visual C# node. Maybe I made a mistake in the InstallerDefinition.dslsetup <installerDefinition xmlns="http://schemas.microsoft.com/dsltools/dslsetup" productUrl="InsertProductUrlHere" defaultDirectoryName="DeploymentTestDesigner" productVersion="1.0.0.0" requiresCSharp="true" requiresVisualBasic="true" productCode="7b0800ad-5105-4b72-b6e9-ffaadb2ddb91" upgradeCode="c8ac4940-e61c-4ea2-ba77-826f6992569b"> <dslPackage name="Dep ...Show All
Visual Studio Express Editions fatal error C1083: Cannot open include file: 'gl/glut.h': No such file or directory
Before you ask , yes i already have search the forum, heck i even search yahoo for an asnwer. Very new to V C++ Express still, and i have the Platform SDK installed. I've seen the video, modified the proper files for VC++ Express. Im currently writing a small/simple win 32 console app, using the glut library. I download GLUT, put it into the proper location: glut into D:\Program Files\Microsoft Platform SDK\include\gl glut32.lib into D:\Program Files\Microsoft Platform SDK\Lib glut32.dll into C:\WINDOWS\system32 /*beginning of my code #include <gl/glut.h> const GLsizei windowWidth = 500; const GLsizei windowHeight = 500; */ I have $FrameworkSDKDir( without the $ sign of course) variable set to D:\Program Files\Microsoft Platform ...Show All
Visual C++ Getting pointer to edit box in MFC
Hi, I'm learning to use MFC and I have encountered a problem... I have a main dialog window, with an edit box (which is used for displaying information), and when a button on the main dialog is pressed, function from another c++ file is called to load data from some txt files and processes it, and I wish to display any errors from processing the txt file to the edit box in my main dialog... say my main dialog's class is called StepDlg, I tried to do this in my other c++ file: StepDlg dialog; dialog.send_data(data); Where "data" is the data I want to display in the edit box... I got an assertion error for this and after a bit of digging and searching I found that the problem is because I have created another dialog by doing " ...Show All
Visual Studio Team System BizTalk2006 Post Installation Problems (Service crash)
Hi All I wrote the Post Below (BizTalk2006 keep crashes) After disable the ReportingEnabled in registry at: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\BizTalk Server\3.0\DW The service still crash but with the following(New) Message: Source:.NET runtime 2.0 error EventType clr20r3, P1 btsntsvc.exe, P2 3.5.1602.0, P3 4410e6b9, P4 mscorlib, P5 2.0.0.0, P6 4333ab80, P7 4052, P8 27, P9 system.net.webexception, P10 NIL. Any one can help Thank you i.i Hi: Unfortunately we can't help much since we are mainly Team Foundation Server. Can you post this first in the Biztalk forum and then if they see there is something wrong with our integration we can take a look. From the looks it seems that they would have the be ...Show All
Visual Studio Printing printer fonts
Hello When I change fonts with the "format object" command I can select printer fonts (I have an thermal printer driver installed on my system - epson TM88III). Right after clicking on the OK button the font type becomes as "Courier". If I try to select the font type using the properties tab I can't fint any printer font, just the system fonts. I suppose this is the reason why printer fonts can't be selected. Is there any workaround to this issue (report preview prints with printer fonts...) Thanks for helping! Reading other posts I realize that it's not possible to assign a font type at runtime with CR. Visual studio doesn't support printer fonts. So does anyone know a way to print a ...Show All
SQL Server Duplicate Values on Top Level of Dimension
Hey there community, I have a problem, and i am lost as to how i can fix it.. I would be over joyed if someone can give me a hand in identiffy it.. I will try to explain below:: I have a cube for sales, that displays sales by a Market heiracy of Market->Division->Family->Item. When i drill down, sales numbers look fine.. I added in a budget file, which only specifys budgets down the the Division Level.. I have added the Budget Figure as a Measure Group. In the dimension usage tab, i specify the Division as the Granuality for the Budget Measure Group on the Market Dimension.. Measure Groups Dimensions Standard Measure Bu ...Show All
Software Development for Windows Vista How to use Wsus api?
I want to use wsus api in C++, but i don't know how to use. if do i need download SDK what is SDK's name or install .NET 2003 or install .Net 2005. where is the Microsoft.UpdateServices.Administration namespace what is the head file or lib file Thanks ...Show All
.NET Development Building Business Logic Layer
Hello to all, I need help in creating Business Logic Layer... Right Now I create a separate Class for each table in my Data Base, and place all necessary methods for that table in this class. this class is intermediate between Data Access Layer and Form. But My problem is that when I have to perform operations on more than one Table, the methods for operation are divided in separate class. For example I have an Employee Table and Address Table. To insert a new Record I have to perform Insert operation on both tables and methods for that are placed in two separate class. so sometimes problem occured for consistancy in this tables (one is updated and one is not) Can any one suggest me the good structure for Business logic where more ...Show All
SQL Server SQL Server does not exist or access denied
Hi I have Visual Studio on XP SP2 and have just installed SQL Server 2000 (Dev Ed.) When I try to look at SQL with the server explorer I get the message: [DBNETLIB][Connection Open (Connect()).] SQL Server does not exist or access denied. Any ideas please Also followed THIS link and it appears to be working now: http://sqlserver2000.databases.aspfaq.com/why-do-i-get-login-failed-for-user.html ...Show All
Visual Studio Express Editions Object and Property Descriptions
I am making a managed dll in C++ to use in later projects for C++, VB, and C#. When ever you click on properties of MS user controls in the design portion IDE it tells you what that property is, ect. I would like to know how describe properties in the same manner. Also when you look at an object in the object browser it gives you a summary; I would also like to know how to define these summaries in C++. Thanks in advance for any help [Description("MyDescription")] in C++/CLI, I'd be surprised if it was different in MC++. ...Show All
Visual Studio Team System problem with force merge (copy) through the API
Hi, I'm trying to merge specific changeset through the API. My application use the workspace.Merge(params) function also, I'm trying to do actually copy merge - means do not resolve conflicts but, copy the changeset as is to the target. My code looks so: "workspace.Merge("$/sourcePath", "$/targetPath", VersionSpec.ParseSingleSpec("C804",null), VersionSpec.Latest, LockLevel.None, RecursionType.Full, MergeOptions.ForceMerge);" In the status that returns from the workspace.Merge operation, I can see that there is one conflict. For some reason when I'm trying to check-in the pending changes after the merge operation I'm getting this kind of failure : "Additional informat ...Show All
Visual C++ ^ Symbol (operator)
Hello everyone, and sorry about my low english level. Mmm.. maybe i'm just too ignorant.. but in ANSI C++ there's not a ^ operator ... for example.. here: System::Windows::Forms::Label ^ label1; I can see that this code is using the ^ like a & reference.. but.. .. well.. i don't know.. better ask . So, what's 'bout it in msvstudio c++ and sorry again.. Ah.. and.. by the way.. what's gcnew .. I know "new".. but.. that Hope someone can help. Rodolfo Navarro Best Regards You are correct that both ^ used in a declarator and gcnew are not part of ISO/IEC C++ "Standard C++" but they are part of ECMA C++/CLI. C++/CLI is a variant of the C++ language that targets the .NET platform and sup ...Show All
Visual Basic MultiDimensional Aray of Points Vs2005. Creating a STRUCTURE as per the last answer is one way but.>>
Hi, I'm having trouble coming to grips with the use of arrays. This time I need to put a number of co-ordinate Points into an array. for example startPoint = 50,180 endPoint = 100,180 I've initialised my array : Dim arrowCoord(,) As Point = New Point(,) {} Then tried to input data with this. arrowCoord(0,0) = (startPoint, endPoint) I'm getting the error message that a ')' is expected at the comma between startPoint and endPoint. Would appreciate any advice. Whe I get this right I need to write the data to an Sql table, so would appreciate a little help with that also, as far as the extracting the data from the array. Thanks Tailor Store the start and end points ...Show All
