Heinz_Richards's Q&A profile
Community Chat it’s turbo c really back???
this is an open question to all the people that wants to give an opinion about this topic, it’s turbo c really back It’s older than me but i have to use it. Do you agree that some teachers nowadays are trying to make us learn about some old program agreed. It's just the way it is unfortunately, due to school budgets and what not. I don't understand why they dont upgrade to using .NET. If money is such an issue, why dont they download and use the Express editions, since they are free anyway (but limited to what you can do in the IDE but shouldnt be a problem if its for schooling) ...Show All
Visual C# Dynamic Code Generation
I was just wondering if it was possible to take a string that contains C# code and compile and use it at runtime. For example if I had a string like this: String strCode = @" class SomeClass : SomeBaseClass { private string firstName; private string lastName; public SomeClass() { this.firstName = ""John""; this.lastName = ""Smith""; } ... Properties ... }" ; I have been reading about the CSharpCodeProvider class, however it doesn't look like you can just compile a string containing code. Sure you can; use CSharpCodeProvider.CompileAssemblyFromSource() Regards, Chris ...Show All
Visual C# Weird problem writing to custom Eventlog -- stuff shows up in wrong log
I have a weird problem writing to a custom event log. My app, a windows service, writes to a custom event log, "WireTransfers" and had been doing so without incident for a long time. Following a reboot of the server, the events suddently started appearing in the Application event log instead of in my custom event log. This first happened on our dev server, then some time later on our UAT server, then some time after that on our Prod server. It still works correctly on our DR server but I'm sure that at some reboot it will switch over. Note, btw, that I have all the correct permissions on the registry entry for event logging I actually don't think this is a language issue, but the "Where is the forum for my problem&q ...Show All
Connected Services Framework Could not find the CSF-Administration-OU Organizational Unit in Active Directory
I am trying to install CSF 3.0 on a machine joined to my domain. I choose Complete install, and leave the Optional Top Level OU box unchecked. I've also tried manually creating the CSF-Administration-OU in AD, but I get the same error. Am I supposed to have SSL Certs pre-installed before running CSF install This is from the MSI log: Property(C): SetCertificateList = SESSIONWEBSITECERTIFICATE,IDMWEBSITECERTIFICATE,PMWEBSITECERTIFICATE,PIWEBSITECERTIFICATE,SCWEBSITECERTIFICATE,NPWEBSITECERTIFICATE Property(C): DEBUG3a34 = 34 Property(C): DEBUG1a34 = 34 Property(C): SetSqlComboBoxSet = 1 Property(C): ORGDESC = CSFHOSTINGORGANIZATIONDESC Property(C): ERROR = No SSL Certificates in Certificate Store! Property(C): ERRORTRACE = &nbs ...Show All
Game Technologies: DirectX, XNA, XACT, etc. A Few Questions
I've been programming for a while, but I can't grasp a few basic concepts of game development, so I have a few questions (actually a lot of questions, but i'll only ask a few) I see a lot of documentation talking about 3D stuff, but I'm interested in 2D and it's hard for me to relate 3D tutorials to 2D. What exactly is the SpriteBatch class, and how should it be used Would I derive an "enemy" class from SpriteBatch I don't understand the way a "camera" works.. if you move a camera, is the actual camera moving or are all the sprites moving Do I have to move them manually OK, here's some code from the Help file I told you about: partial class Game1 : Microsoft.Xna.Fram ...Show All
Visual Studio Express Editions brace (bracket) matching
I have both Visual C++ and C# Express Editions installed on my PC. When editing C# programs, brace matching works. i.e. when I highlight a brace in C# it's companion is highlighted. For some reason this does not work in C++ even though I think I have it enabled in the Tools - Options - Text Editor General - Automatic delimiter hightlighting. Am I missing something Thanks!! I notice that there is a box on the VC++ 2005 Express Edition Tools | Options | Text Editor | General pane for obtaining delimiter highlighting. (It doesn't appear to do anything on my version either.) In addition, on the Text Editor | C/C++ | Formatting pane there is control of Outlining which does appear to work (and may interfere ...Show All
Game Technologies: DirectX, XNA, XACT, etc. DirectX 10-Vista
I owe a computer with W. XP.I'm going to upgrade it to Vista.My question is if directX 10 needs only Vista to run.My system is fueled by ATI radeon x1600 pro.Do I have to change it or just have Vista Unfortunately, I cannot buy Intel chipset because as a processor I've got an AMD ATHLON 64 x2 4600+. I thing Intel chipsets are only combartible with Intel processors, don't they ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Meshbuilder And Geometry/Materials
Meshbuilder doesn't seem to allow us to have multiple materials in a mesh. Does that mean if we want to want to split a mesh into multiple parts based on materials, we need to do it manually You need a separate Geometry instance per material, but these can all be inside a single MeshContent. MeshBuilder should handle all this for you automatically: you can change the mateiral property at any point while you are outputting triangles, and it will create new Geometry instances as required. ...Show All
SQL Server Transact-SQL Common Features?????
Hi The white paper which compares SQL Express and SQL Compact says that they both share Common Features Can someone please indicate if SQL Compact will support functions like Average, STDEv etc Thanks Touraj Hi Brian Thanks for the reply Cant this be included in the database It seems ridiculous that its been left out Anyone from Microsoft that can give us a clue about why its been left out thanks TV ...Show All
Microsoft ISV Community Center Forums worksheet_change and data validation
Hi there I have an Excel spreadsheet in which one column has data validation set. So the cells in this column have drop-down lists with the pre-set allowed values. Now I want the cell in the neighboring column to be set to some default value when the user selects an item from the drop-down list. This seemed like it would be easy, using the Worksheet_Change event handler. When a cell in the first column is changed, it initiates a function which sets the value in the neighboring column to some default value: Target.Offset(0,1).Value = "default". The problem is that it doesn't work when using the drop-down list. If the user types in the value manually, or if a cell in the first column is deleted, it DOES fil ...Show All
Windows Forms Resizing Forms & COntrols
Can someone tell me which forum to post this to please..... I'm just starting to rewrite an existing system in VB.net 2005. It was originally created in VB3 ! - for 640 x 480 monitors, and very fixed in format. I want to create the individual Windows forms so that they can still be used at this resolution (as we have existing clients with old kit) - but won't others to be able to size to as large as they want - but retain the look of the form - ie resize everthying on the form in proportion to the window. Just resizing the form tends to leave big gaps and makes the whole thing ugly. Better still would be to create the new ones in 1024 x nnn and allow them to resize smaller - keeping everything there but at a smaller font. Any help ...Show All
Smart Device Development Unable to create cab files in visual studio 2005
Hie, i think i am facing the same problem, so i just reply here instead of starting a new thread. if this isn't the same problem, i will create a new thread later. i followed the how to article on using smart device cab project to create the cab files. i successfully created the cab file and when i copy it to the device via activesync, it install successfully. but when i package it into a installer and use ce application manager to install, it say this is an invalid setup file. so i open the cab file and compare it with the sql ce cab file. and guess what, it is different. In the cab file that i create, it doesn't have a *.999 file, but all the other cab files like sql ce, sql ce client, and compact framework have. so, what am i d ...Show All
.NET Development Abortable thread with return value
Hello, There are two possible solutions that would work for me here... Requirements are as follows: I want to run a task in the background. The task returns a value, which I need to collect. I also need to be able to abort the task. I can use Thread.Start, and then Thread.Abort if I need to stop it, but I can't find a way to get a return value by this method. Alternatively, I can use BeginInvoke, which makes it easy to get a return value using EndInvoke, but then I can't seem to find a way to abort the thread. Either method would be fine. Any suggestions Thanks, Nick Maybe you can use the BackgroundWorker component. ...Show All
Audio and Video Development How to turn Subtitles off?
Hi there, i tried the following to select subtitles and switch them on (or off) switch (g_sub) { case "de_sub": Player.subtitle.visible =true; Player.track.selectSubtitleTrackNumber(1); break; case "fr_sub": Player.subtitle.visible =true; Player.track.selectSubtitleTrackNumber(2); break; default: Player.subtitle.visible = false; break; } The first 2 "case" definitions works well. They turn german or french subtitles on. If "g_sub=='off'" the default definition should turn the visibility off. Right Wrong. the last selected subtitle is shown, although g_sub isn't "de_sub" or "fr_sub". How can I ...Show All
SQL Server fixed point arithmetic for price calculations
I've got a price in euro as a string, which I can easily cast to a numeric SSIS data type e.g. R4, R8, DECIMAL, NUMERIC. And I've got the dollar/euro exchange rate stored in an SSIS variable of type DOUBLE, set to 1.28 for testing purposes. I want to multiply the two values and return the (dollar) result, rounded (not truncated) to 2 decimal places, as a string. Here are some experiments I did in an SSIS expression editor: (DT_WSTR, 10) (1.28 * 31.10) evaluates to "39.8080" (DT_WSTR, 10) (1.28 * (DT_R8) "31.10") evaluates to "39.808" (DT_WSTR, 10) (1.28 * (DT_DECIMAL, 0) "31.10") evaluates to "39.68" (DT_WSTR, 10) (1.28 * (DT_DECIM ...Show All
