Mike!'s Q&A profile
Visual C++ MFC Question
(I cannot find a MFC forum here so I thought this would be the best place to post) I'm writing a program in C++ using VS.NET 2005 with the DOC/VIEW approach. I ran the wizard to generate the MFC project and I have the following .h files: MainFrm.h Resource.h Sketch.h SketchDoc.h SketchView.h stdafx.h I have the following .cpp files: MainFrm.cpp Sketch.cpp SketchDoc.cpp SketchView.cpp stdafx.cpp I have a very simple question - how I do I change the name of the window that appears I thought you go into the initInstance in Sketch.cpp and right before it shows the window, you invoke the SetWindowTitle method, but that doesn't exist on the m_pMainWnd variable, which appears to be CWnd. I hav ...Show All
SQL Server Using AMO to Update and then Process an AS 2005 database
Using AMO, I connect to an AS 2005 database, which has the following connection string: ConnectionString = "Provider=SQLNCLI.1;Data Source=MyServerName;Integrated Security=SSPI;Initial Catalog=MyDBName" And then I do the following: amoDataBase.Process(ProcessType.ProcessFull) ‘ works properly amoDataBase.Update(UpdateOptions.ExpandFull) ‘ works properly amoDataBase.Process(ProcessType.ProcessFull) ‘ This one returns the following error: ex {"The following system error occurred: Incorrect function. . Errors in the high-level relational engine. A connection could not be made to the data source with the DataSourceID of ' MyDatasourceID ', Name of ' MyDatasourceName '. Error ...Show All
Visual C++ Templates overloades and specializations
I want to create a function that returns the absolute value of a number. This number could be real (int, double, etc) or complex (of real, double, etc). I currently have the following: //--------------------------------------------------------------------- template<class data_t> data_t myAbs(data_t x) { return ((x > 0) (x):(-x)); } //--------------------------------------------------------------------- template<class data_t> data_t myAbs<complex<data_t> >(complex<data_t> x) { return (sqrt(x.real() * x.real() + x.imag() * x.imag())); } //--------------------------------------------------------------------- This compiles. However, when I call the function with a complex argument, the first function is c ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Integrating Joystick w/ DirectX9.0 and VB.net
I had successfully integrated a joystick using VB6 and DirectX8.0 ( ) a few years ago. I wanted to do the same thing with newer technology... I recently purchased VB.NETand a joystick thinking that the taks would be a cut and paste of old code with some minor modifications. I found that I can't download DirectX 8.0, and now I must accept 9.0. It seems as if every thing is skewed towards C# & C++ now regarding joysticks... My simple question: If I download 9.0 SDK (Managed code) will I be able to 'enumerate' the device and read it using VB.NET Advanced question: I noticed that 8.0 SDK method SetCooperativeLevel expected a windows handle that was type 'long', which is now 'int32' (or something similar) ...Show All
Software Development for Windows Vista dynamic application of rules according to the user
Hi , Iam not very well expericed with work flow. I want to do the dynamic application of rules according to the user who is placing the request and drive the workflow on the basis of applied rules. if somebody may suggest any solution or may refer any helpful link. thanks in anticipation. Sobia Meghani. thanks kavita for the guidance. I want to clear one thing as u wrote " you dont need to have a WF to use rules", but i want to decide or set the next state from the current state on the basis of rules i.e, if line item total amount >10000 let suppose, so call the event 'SubmitforReview' otherwise 'Approved'. I have define both of the events in my "CreateReuest" state and on the basis of rule(which i hav ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Optimizing meshes
Basically, I'm building a sort of Isometric Tiling engine in XNA, the same you see in games such as Civilization. Each tile in my 3D world is a mesh (cube), so many cubes form the grid or playing area. As expected, rendering many meshes at once slows down the game a lot. It can handle a 15x15 grid (225 meshes) but going over 20x20 (400 meshes) slows the game down to a halt. I'm not sure how they do it in modern games, but I'm assuming they build the terrain seperately and then represent it as a grid.. so that could be a possibility. I also thought of using sprites to represent the tiles but that (I think) severely affects the 3D stuff I can do, such as panning/rotating a camera or selecting objects. So what sort of optimizations c ...Show All
Visual Basic Combobox
Hello. A question please. At the design time, how can I assign a value to each elements of my combobox Thanks... Thanks. It is not that what I want. I want to use the "short name" of each elements for my program. If the user choose "RED" for example, I could use "R" in my program. In VB6 I did it but I don't remember how to do it. Thanks.. ...Show All
Visual Basic ports range
hi can you please tell me what is the ports range in Visual Studio 2005 to prevent add in blocking by a firewall With best regards yuval yuv, Please read the following article and hope that can help you with the question: How to turn on remote debugging for Visual Studio 2005 in Windows XP with Service Pack 2 http://support.microsoft.com/kb/908099/ This article discusses how to turn on remote debugging for Microsoft Visual Studio 2005 in Microsoft Windows XP with Service Pack 2 (SP2). Windows Firewall replaces the Internet Connection Firewall (ICF) feature that is included in earlier versions of Windows XP. To turn on remote debugging for Visual Studio 2005, you may have to c ...Show All
Visual Studio Team System Licensing Question
Can anyone tell me if I am correct about the following 1) For those owning Visual Studio Team Suite, there will be no cost for Datadude. 2) For those owning any other version of Visual Studio (Professional version and higher), there will be a cost for Datadude. If #2 is correct, can anyone tell me what the cost will be Our development team is using Visual Studio Team Edition for Software Developers. My understanding is that we will need to pay for Datadude. I am try to plan for the expenditure. Thanks - Amos. My gosh I hope you are mistaken. We have eight developers on our team, and they all make their own database schema changes, and would all need a copy. At $3K per seat, on top of what we p ...Show All
Smart Device Development Cannot connect to bluetooth gps
I have a Nokia LD-3W bluetooth GPS receiver that i cannot connect to Device Emulator on a notebook with a dell wireless 355 bluetooth 2.0+EDR (widcomm-broadcom), it fails with the error: 'Unable to open serial port 'COM12'. LastError=The system cannot find the file specified.'. I connected sucessfuly the GPS to Microsoft Autoroute 2007 and to Hyperterminal on the serial port (COM12) for the GPS receiver. I could connect to Device Emulator on a PC with a Microsoft bluetooth 2.0 dongle, serial port COM4. I have installed Microsoft Device Emulator 2.0 Preview, Virtual Machine Network Services Driver and Microsoft Windows Mobile 5.0 MSFP Emulator Images. I would appreciate any help, than ...Show All
Visual Studio 2008 (Pre-release) Using the Office RibbonBar in Xaml
Hi Everyone, I have a general question can you use the Office RibbonBar control from within Xaml I you can has anyone done it an what are the pitfalls to look out for. Thanks in Advance Andy Actually, you can write your own ribbon controls using WPF's styling and control templates. here is an idea: http://shevaspace.spaces.live.com/blog/cns!FD9A0F1F8DD06954!502.entry Sheva ...Show All
Visual C# LCG issue (DynamicMethod / ILGenerator)
Hello, Upon invoking a Delegate created from a DynamicMethod, I receive the following error "Common Language Runtime detected an invalid program.". It's a bit hard to shape the problem verbally, but I'll try my best, since I would need to post a lot of source code - however, here's my got at it: I have a Method Manager class. This class allows me to story a collection of MethodInfo objects into a Dictionary object, whose key is a Type. class MethodInfoCollection: List<MethodInfo> { ... } Dictionary<Type, MethodInfoCollection> m_Methods; ...etc Let's say I'd want to call a specific method for each Key of this m_Methods Dictionary. I would iterate into each MethodInfoCollection and then into each MethodInfo object, c ...Show All
Windows Forms i need to change the row position during run time using drag and drop method for data gridview
in my project i have an requirement to change the order of rows using the drag and drop method for a datagrid view containign about 40 rows can any one help me how to solve this problem 1. I set "AllowDrop" to true. 2. In the DragEnter event I put this... if (e.Data.GetDataPresent(DataFormats.Text)) { e.Effect = DragDropEffects.Copy; } else { e.Effect = DragDropEffects.None; } 3. In the DragDrop event I put this... this.dgvMyGrid.CurrentCell.Value = e.Data.GetData(DataFormats.Text).ToString(); You may add your logic here You can also refer to this http://www.codeproject.com/csharp/DataGridView_Drag-n-Drop.asp ...Show All
Windows Forms dataGridView
Hi here i'm trying to implement database operations like add, delete, modify in a database (sql server2005) using c# ado.net how can i do this can anybody give me a simple code. Thanx-Nagu A sample would be too large to post. However there are numerous samples available online. Here are some links. http://msdn2.microsoft.com/en-us/library/fbk67b6z.aspx http://www.15seconds.com/issue/040615.htm http://www.windowsforms.net/Default.aspx tabindex=4&tabid=49 Michael Taylor - 7/28/06 ...Show All
.NET Development Expression Building - Access 2003
Good Evening All: The Scenario: I am running a report from clients that have sales reported daily, weekly, monthly and so on. I need to put an extra calculated field in the form in Access that determines the next time the client needs to report data. Example: Client "A" sent in data today and they report every day. Client "B" sent in sales today, but reports weekly. I need to add an expression to determine if client A sends today and they are a daily reporter, then the calculated field would display the next day. Same for a client that reports on a weekly basis. The field would calculate if they sent data in today, then 7 days from now would be the next time they would need to send data. Here is what I have so ...Show All
