JuliusY's Q&A profile
Visual C++ EVC++ unicode problem
hi, im building an application with evc++ and i want to get rid of unicode because it causes me problems. i ve read the first sticky post but says only how to disable unicode support in MVS2005.. how can i do that in evc++ 4.0 thanx in advance You can just as easily use _stprintf, the non-secure version, if available for CE. Like I said, it's a matter of seeing which "parts" are available and piecing them together. ...Show All
SQL Server Webparts connection to sql 2000
Hi everyone, I'm trying to get webparts working with an sql 2000 database. I managed to get a database up and running using the aspnet_regsql.exe utility, enable forms authentiation, and user registration using asp 2.0 controls. Despite this success I seem to be getting a connection error when I try to display any page that has a web parts control. My thought is I need to specify a connection in the web part manager or some file other then the web.config. Here's the error I get when I attemp to display a page with a webpart. Server Error in '/myFirstApp' Application. -------------------------------------------------------------------------------- An error has occurred while establishing a connection to the server. When conne ...Show All
Visual C# check valid path
Is there away to check a valid DOS path in c# ex: if the user types zzz:\test.txt and the path is invalid, return error message. using VS2003 .NET1.1 Thank you, using File.Exists to check path validiy is a wrong idea and should never be used. It says MSDN here: http://msdn2.microsoft.com/en-us/library/system.io.file.exists.aspx See Under Remarks heading. You can use System.Text.RegularExpression.Regex class to do this but for that you need a Regex string which i belive can be easily found through google. Try something like this File path Regex, Path Regex etc. You'll need to write code like this: Regex fileRegex = new Regex(regexStringHere); Match mat ...Show All
Visual C# Using a class as a parameter
Hi there! I have to pass a class (not an instance) as a parameter to a method, and I have no idea if I can do that -- tried various things and it doesn't work. It should behave like this: I have a BaseClass. Another ChildClass inherits it. The ChildClass has a method (or Property), static or not, that returns a class. The BaseClass has quite a few methods where this class is needed (to invoke static methods on it), so the BaseClass invokes the "GetClassINeed", which returns the static class and then uses it. The reason I need it is that I have about 30 of those ChildClasses, and they all need those methods defined in BaseClass. I don't want to add them in all of them if not needed. Also, to create instances of that Cla ...Show All
Windows Forms ClickOnce through Proxy with Authentication
Hello, I have a problem with ClickOnce Deployment: My app runs on Windows Server 2003, IIS 6. In my university we have a proxy which needs authentication, and if I click the .application file, first there is a login window for the proxy, then the window ("verifying application...") comes up, but then there is an error message, saying that the file *.application can not be downloaded. In the log file is an entry: the server is unreachable, so I think the process which downloads the .exe and the other .dlls don't know the proxy authentication information. what can I do, to run the application behind such a proxy thanks, marco I just came accross the same issue, I then googled and found this solution. so I thought I would share it. F ...Show All
Visual C++ Roxio Easy Media Creator 7 Basic DVD Edition
Hi I have the software and the DVD Builder will not open I get a erreor. Microsoft Visual C++ Runtime Libray Runtime Error Runtime to terminate in an unusualway. Can Anyone Help The Vicar Roxio Easy Media Creator 7 Basic DVD Edition RonWPB wrote: Why don't you cut us all a break and stop telling people that, "this is not the correct forum for your inquiry" and dole out some help if you can. If I had not answered this, then a Microsoft representative would have answered with essentially the same answer. RonWPB wrote: It's bad enough that it's so difficult to find someone who has answers. I would expect problem ...Show All
Architecture Error Codes
Hi , I need your opinions about whether to use a global return code for each method in my application or let every component throw its exception and use the upper layer to handle it. Example : public RetCode ABC () { If(…) Return RetCode.Valid; Else Return RetCode.Invalied; } OR public void ABC () { If(…) … Else Throw new Exception (…); } Thanks it's a best practices NOT to throw Exceptions but write code that catch common errors. So "Throw new Exception (…);" is n't the best way. ...Show All
.NET Development Power consumption class?
Does the .NET framework has a power consumption class or something like it , is because i want to know how much power (in watts) my pc spend, but i don't know if this is possible Hi, No, you don't have. The main reason is because that interface is not standard yet, this information is usually published by your motherboard manufacturer. If you check the website of your manufacter maybe they will publish the interface to their own API. Usually they publish information about consumption, fan status and temperature. Microsoft is trying to standarize that information using WMI (Win32_MotherboardDevice.DeviceID="Motherboard") but the information is not published yet. Hope this helps! Cheer ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Sprite scaling and blending
OK, I've searched through a couple posts here and didn't find anything that fixed the problem. I'm scaling sprites to draw GUI controls and I'm getting funky results. Here's what I get (blown up 6x to show the problem). I'm drawing the box in chunks - upper left 4x4 pixels, upper right 5x5 pixels, left border, right border, lower left 4x4 and right 5x5 pixels, and upper and lower middle sections.I don't think I have to explain what the problem is. I've tried setting texture filtering, destination blending, but nothing seems to affect it. Here's the sprite I'm using to draw. Maybe I just need to get some sleep. That makes sense if you try to stretch the entire texture, but what I don't quite get is why specifying a single pixel ...Show All
Visual Studio Team System Team Foundation Build Disk Space
I get a warning message when trying to install Team Foundation Build that states: The System Health Check has detected a problem that may cause Setup to fail. Description Available disk space does not meet recommendations Workaround / Remedy The available disk space in this computer does not meet the recommendations for installing this product. If you continue with installation, you may experience performance or scalability issues I realize that this is just a warning, but I have found no documentation to tell me what the disk space recommendations are. It is not in the install guide (to my knowledge). Can someone point me to the documentation for the recommended disk space for TFB Thanks - JFK ...Show All
Smart Device Development Trouble with Threading on Motorola Q Smartphone
I'm having some trouble with threading on a Motorola Q Smartphone which runs WM5 as you know. I have a C# program that I've been running under XP quite successfully. When I recompile it (with a different UI of course) for the Q, the threads to not start. Here's a code snippet... _thread = new Thread(new ThreadStart(Receiver)); _thread.Start(); which is executed in the main thread and where Receiver is: private void Receiver() { ... } I have some debug output that dumps messages to a text box on the display. The message dumped by the thread when it first starts never makes it to the display. Any ideas why this simple code would work under XP but not on a Q Thanks, FM I wou ...Show All
Gadgets This is not a valid gadget package!! grr!
hey, So i finished creating my gadget, i use winzip to zip it up to mygadget.gadget and then double click to install... However it just says: This is not a valid gadget package The gadget works if i move the folder to the windows gadget directory! Does anyone know how to fix this problem Regards Is indeed interesting... I have; /images/ ** Docked.PNG *** play.PNG *** stop.PNG /en-US/ * /css/ ** Radio.css * /js/ ** Radio.js * gadget.xml * Radio.html * Settings.html and then in the root directory i have three things, drag.PNG, icon.PNG and logo.PNG now, i have tried making it so EVERYTHING is in the root directory, this does not work h ...Show All
Visual C++ Float Dot Product Template Optimization Problem
I've been trying to get VC 2005 to optimize following piece of code C++ to the point that it is as fast as the equivalent in C. Consider 2 different implementations to calculate the dot product of two 3d vectors: float g_A[3]={3.0f,4.0f,3.0f}; float g_B[3]={1.0f,2.0f,4.0f}; template <int INDEX> inline float prod() { return prod<INDEX-1>()+g_A[INDEX-1]*g_B[INDEX-1]; } template <> inline float prod<1>() { return g_A[0]*g_B[0]; } float templateProd() { return prod<3>(); } float CProd() { return g_A[0]*g_B[0]+g_A[1]*g_B[1]+g_A[2]*g_B[2]; } the assembler code generated for CProd is: fld DWORD PTR g_B@@3PAMA+4 fmul DWORD PTR g_A@@3PAMA+4 fld DWORD PTR g_B@@3PAMA fmul DWORD PTR g_A@@3PAMA faddp ST(1), ST(0 ...Show All
Visual Studio Express Editions Must be non-Negative and less than the size of the collection
Hi All, I need help with the code below. I keep getting this error when I run this code. "Index was out of range. Must be non-Negative and less than the size of the collection Parameter name: Index" This is the code I am running Private Sub tsbtnSave_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles tsbtnSave.Click objData = New DALBase Dim iv As New OracleParameter Dim oraConnect As New OracleConnection("Data Source=DEVELOPM; User id=VS_DEVELOPER; Password=f00tball;") Dim myCMD As New OracleCommand("Weblogica_Systems.Insert_Daily_Sales", oraConnect) Dim Val_1 As String Dim Val_2 As String Try oraConnect.Open() dgvSalesDetails = New ...Show All
SQL Server relate two tables based on an 'active' column
So I have a question and I will give a related example. Say I have a list of records in a table: Product Cost Active hat 1.00 false coat 2.00 true I have a DataGridView that shows purchases from a purchase table: Date, ProductID, Buyer Is there a way to have a DataGridViewComboBoxColumn show only active items so that a user can only select active items in the puchases datagridview, but when they click a purchase from long ago when an item was active they have the ability to pick that old(unactive) item or a new one for an update. Basically if I just have the ComboBoxColumn bound to a dataset with just active items, the datagrid will fail to load cause old purchases are not in ...Show All
