monkeynova's Q&A profile
Visual C# C# - How powerful?
I know C# is sort of like C++, but is it as powerful as C++ If you want to learn C++, the best tutorial I can suggest is the second edition of "C++ Primer" by Stanley Lippman. The third edition tries to be too many things at once. The second edition will tell you 'almost' everything you need to know about C++. Windows programming, if that's what you want to do, is better covered by other books. I liked Jeff Prosise's "Programming Windows with MFC" second edition, but obviously it covers the 'old' way of doing things. For MFC programming another good reference is Mike Blaszczak's "Professional MFC with Visual C++ 6". Note the 'Visual C++ 6' but MFC hasn't chang ...Show All
Game Technologies: DirectX, XNA, XACT, etc. C# Exception Assigning an Index Buffer
I'm getting a D3DERR_INVALIDCALL when using the Device.Indices to try to assign an index buffer. Near as I can tell the index buffer is valid and created, the specific function that is getting the exception is Device.set_Indices. Strangely the Indices seem to be set properly to an index buffer. Here is the render function: virtual public void render(mon_mesh mesh) { mesh.primeMesh(); Device tempD = mesh.CurrentDevice; tempD.Indices = mesh.ib; tempD.SetStreamSource(0, mesh.vb, 0); tempD.VertexFormat = monVert.FVF; tempD.DrawIndexedPrimitives(PrimitiveType.TriangleList, 0, 0, mesh.vertCount, 0, mesh.indexCount / 3); } and the portion of the prime function that dea ...Show All
.NET Development how to get device info?
in manageengine.adventnet.com when you add a device to monitor using the device IP address it detects few details like the device name and model. how can I do that in C# well, i tried it with 1. LightPoint 2. Cisco Routers and I am getting the exact name and model, for example if I add an IP for a Cisco router it adds (Cisco 2500) ...Show All
Smart Device Development Handle foreign kb on PPC
I have a program that runs in background on PPC and places keyboard events in event queue. I'm placing keyboard events in system queue with keybd_event(). On German PPC VK_OEM_7 virtual-key is echoing as apostrophe instead of 'a' with umlaut as expected. I tried using LoadKeyboardLayout() but it fails with extended error code 11004 and LoadKeyboardLayoutList() returns 0 elements in list. Does anyone have experience with this kind of thing on PPC or Smarphone I have a program that runs in background on PPC and places keyboard events in event queue. I'm placing keyboard events in system queue with keybd_event(). On German PPC VK_OEM_7 virtual-key is echoing as apostrophe instead of 'a' with u ...Show All
Visual C# How to make the application run for long time?
Hi, all I am now using a Serial Port program written in C# like HyperTerminal to communicate with a radio baseband board. I will get desired response after sending certain data to the board. There is a switch on the board. If I switch off it and then switch on it, a "RESET" string will be sent to the Serial Port program so that the program will refresh and initialize. However, after about 30 times switch off/on, the time of refresh/initialize increases a lot. I have to wait for several minutes for the program to get ready. I know to use a software repeatly will slow it down. However, 30 times is not very many. I want to ask is there any way or method or suggestion for more efficient coding to create software whic ...Show All
SQL Server Conditional Scheduling of MS Analysis Jobs
Hi All, I'm trying to understand, if there SSAS 2005 supports conditional sequencing of jobs. I wanted to know if there is a way to schedule few critical cube refresh jobs first and then sequence other jobs. Example: Cubes with Customer XYZ should be refreshed first and then Cubes for PQR and so on. Appreciate, if you can throw some light on this. Regards, Dash If you wanted to have particular order for processing of your partitions and dimensions (processing of cubes always results in processing of partitions and dimensions) you should simply build a processing batch consisting of commands in particular order. For that run Processing dialog in SQL Management studio. Select the objects you like to process and the ...Show All
Software Development for Windows Vista Vista not appending primary DNS suffix beyond one level deep, Anyone Seen this ?
This is new to Vista as XP works fine. When you simply set append Primary DNS suffix, the system should always append it, such that is your domain is mydomain.com, and you look up www, it should append so the FQDN=www.mydomian.com That seems to work fine, but if you do one more deep, such as www.test , you would expect as in XP and in DNS in general to append the primary suffix, such that the FQDN = www.test.mydomain.com Vista does not do this, and this is a very major problem for our company as we have many DNS zones and normally the user does not need to append the domain he/she is in and it should recursive lookup. It is not. We are not going to GPO 100 domain suffixes to each workstation just so they don’t have to type the & ...Show All
Internet Explorer Development Tiki wiki & IE7
I have a couple of sites running on IE6 and am considering moving to IE7. I opened the site on IE7 and I notice half my pages lose layout and style. This is specified in my CSS file. Does anyone know what's going on ...Show All
Windows Forms How to print a MdiChild form?
I've got an application that has a main MdiContainer form which has a print button (in a MenuStrip.) I want this print button to be able to print out the currently selected MdiChild form so that across my application there is a generic way of printing any form. I've created a class which works almost as I want but it prints the whole screen including MdiParent instead of just the MdiChild. The class I've written inherits from PrintDocument, does a print screen and creates a bitmap and then overrides OnPrintPage and assigns the bitmap to PrintPageEventArgs. I have not found of way of dumping a MdiChild into a bitmap without also printing the MdiParent - just wondered if there was a way of doing it . Any pointers appreciated Jon /// OnPr ...Show All
.NET Development delete row is not updating in dataAdapter
Hi, I'm trying to delete a row and the changes can not be updated. --------------------------------------------------------------------- Dim propertyCommand As New SqlCommand Dim propertyAdapter As New SqlDataAdapter propertyCommand.Connection = Conn propertyCommand.CommandText = "SELECT tbl_property.propertyID, tbl_property.propertyName, tbl_property.propertyAddress, tbl_property.prAddline2, tbl_property.prAddline3, tbl_city.cityName, " & _ " tbl_property.postCode, tbl_localauth.lauthorityName, tbl_service.serviceDetails, tbl_agent.agentName, tbl_usergroup.description " & _ " FROM tbl_property INNER JOIN tbl_city ON tbl_property.cityID = tbl_city.cityID INNER JOIN " & _ ...Show All
Windows Forms DateTimePicker column not holding edited values when tabbed off control
Does anyone know if Microsoft will be including a DateTimePicker column in the DataGridView (for underlying date values) The current article says "TextBox, Image, CheckBox, ComboBox, Link, and Button column and cell types" will be included. I'm hoping for a DateTimePicker one as well... From: http://www.windowsforms.net/WhidbeyFeatures/default.aspx PageID=2&ItemID=13&Cat=Runtime&tabindex=5 Sorry to bring up an old thread. I would be ...Show All
Visual C# Problems adding a Excel Reference in ASP .NET
Hi I'm programing with C# in Visual Studio 2005... i'm trying to athomate a process using Excel.. but when i try to add the reference it doesn't do anything..what could be the problem Adding a reference to the project doesn't make anything magically happen. It just tells the project what references are used. Please post your automation code, it's likely that the problem is in there. Thanks, Kim Greenlee ...Show All
Software Development for Windows Vista How to NOT persist a workflow instance when it is completed?
I've found when a workflow instance is completed, it will be persisted automatically. Is that true If yes, how to get rid of it I have already let UnloadOnIdle be false ---- because I do not want to persist my workflow each time it becomes idle. Strangely, it is still persisted when it is about to complete. I do not want this because it overwrites the previous persistence (I am using a custom file persistence service). Thus, I want the workflow to be persisted only when I tell it to be. ...Show All
Visual C++ Go to next C++ function?
How can I position the caret at the start of the next (or previous) C++ function in the text editor This was possible using WizardBar in VS6, but WB has been removed. I would also like to point out that the Navigation Bar lists the functions in alpha order, so there is no possible way to go to the next function, unless you already know its name, in which case you wouldn't use this method. ...Show All
SQL Server MDX Script - Infinit Recursion Detected
I'm getting the error message: "Infinit Recursion Detected. The loop dependencies is: 98 -> 99" I have this script in Cube Calculations, in this order: [account dimension].[account hierachy].[bank application] = IIF ( [account dimension].[account hierachy].[Asset]>[account dimension].[account hierachy].[Liability], [account dimension].[account hierachy].[Asset]-[account dimension].[account hierachy].[Liability], 0 ); [account dimension].[account hierachy].[bank loan] = IIF ( [account dimension].[account hierachy].[Asset]<[account dimension].[account hierachy].[Liability], [account dimension].[account hierachy].[Asset]-[account dimension].[account hierachy].[Liability], 0 ); "bank application" i ...Show All
