Pieter's Q&A profile
Visual Basic Amazing super serious bug..
Using 2005 RTM In our file based Webb application, we add a new page. Then we add this simple code. Dim bTest as Boolean = True If Not bTest Then Debug.WriteLine("bTest is false") End If And Guess what, the debug line is printed. If I do a breakpoint on the If line, and add a watch for bTest its TRUE, still it goes into the if statement. Rebuilding the solution dont help. I cant replicate it on any other project at the moment, but it happens in our main development project. Any tips are welcome!! This bug seems hard to repro. But, we at MS are committed to find and fix it. We need more info on the bug. Does this repr ...Show All
Visual Studio Downloading of files frm VSS using commandline issue.
Hi people, I got a problem which I don't know if its a VSS or C# problem. Currently i am writing a script which will extract source codes to a local folder. So to achieve 'automation' I created a simple .bat file which contains the ss.exe paths and arguments which will be called by my running C# program. However the issuse arise when i call the .bat file from my C# program, the sourcecodes are saved to the /bin/debug folder of my C# script. However when i double clicked the .bat file in its own folder, it downloads correctly to the location where the .bat file is. Below is a directory listing of the above issue /AutomatedVSSDownloa ...Show All
Visual C# Custom Marshaling of DateTime
Hello, Is it possible to marshal a c++ char[20] which contains a datetime in the format "yyyy-MM-dd HH:mm" directly to a C# DateTime I can marshal it to a string using: [ MarshalAs ( UnmanagedType .ByValTStr, SizeConst = 20)] public string Birthdate; but When I try it with a custom marshaler like this: [ MarshalAs ( UnmanagedType .CustomMarshaler, MarshalType = "DateTimeMarshaler" , MarshalCookie = "20")] public DateTime Birthdate; I always get a System.TypeLoadException: Cannot marshal field Birthdate: Invalid managed/unmanaged type combination (the DateTime class must be paired with Struct) This is the code of the custom mars ...Show All
Visual Studio Express Editions Mscomm, Serial ports and bit manipulation
I have just started to investigate the replacement of some seriously old kit with a Windows XP version. I need to read and write data between either a usb/serial port on a new Windows XP machine and connect it to an old controller via an rs-232 cable. Data is passed between the two in Ascii format and can be as little as one character at a time or up to several hundred characters at a time. I will need to be able to interpret some of the data down to the bit level on receipt. Having read some of the threads here, it would appear the use of MSCOMM is a viable solution for the serial port communication as the transmissions are in a set ...Show All
.NET Development ASP.net
I was wondering how I would do this in ASP.net Lets say I have 3 images be pulled from the database, how would I then make them clickable to view larger version Sorry if this is the wrong area...not sure where to put this question :( Although we have this forum for web services questions, www.asp.net is the right place for this question, and ASP.NET questions in general. ...Show All
Visual Studio Express Editions Inmediate window functionality for VB.NET ?
Hello.. i'm a VB 6.0 & VBA programmer and i Just changed to VB 2005, i used to use the Inmedate window to check some functions or some code with a break point, but i can't find it in VB 2005, please tell me if it exists or something alike it. Due to the fact that windows was very important, and helpful. thanks ALEAL Hello. Forget my question. i looked for it and i found where it is.. DEBUG/WINDOW/INMEDIATE WINDOW. Thanks... ...Show All
Smart Device Development PDA programming possible with VB Express?
Hi all, I can't find any information on building programs for a PDA using VB Express. Does this mean that it's not possible I'm sorry if I missed the obvious. I want to make a simple program on my PDA with VB that stores info about the photo's I take (subject, street, city etc.). What programs do I need to do that At this moment I use a javascript application that stores the data in a cookie, but that's not ideal. I'm familiar with VB6 and I understand I need the emulator for the PDA but I'd like to know in advance if VB Express is going to do the job. Thanks. VB express is using for d ...Show All
Visual C# Trying to set projectype property
I have a program that I would like to be able to have programmatically switch between having an output type of "Console Application" or "Windows Application" based on a command line arg. Haven't yet figured out how to do this in C#, anybody have a clue I think you need to set the parameters to csc.exe. csc/target:exe produces a console app while csc/target:winexe produces windows app Cheers! ...Show All
.NET Development MemberAttributes.Abstract (System.CodeDom)
Why thid code doesn't generate an abstract class CodeTypeDeclaration abstractClass = new CodeTypeDeclaration (); abstractClass.Name = "Service" ; abstractClass.Attributes = MemberAttributes .Abstract | MemberAttributes .Public; abstractClass.IsClass = true ; The generated code: public class Service { } Sorry, found it. abstractClass.TypeAttributes = System.Reflection. TypeAttributes .Abstract | System.Reflection. TypeAttributes .Public; ...Show All
Visual Studio Express Editions problem installing
i have tried multiple times to install MSVC++ express and every time i get the error: i have tried installing using the one were it downloads it from the internet as it installs and the iso one and it gives the same error. I even tried to make the folder during the install for it but even that gives me an error. i even tried installing in a different location but that didnt help any either. {edit} actually it doesnt let me make a folder named "sys" anywere with any program.... now im lost Yeah, I also have this problem.. can anybody please find the answer quick i did noticed ...Show All
Visual Studio Express Editions error 2098
When trying to install visual studio 2005 beta , I got error 2098 saying the file may be corupt and exited the installation. Any suggestions You cann't install Visual Studio with your corrupted installation file, so, download Visual Studio Express , it's free to download and free to registeration. ...Show All
Visual Studio 2008 (Pre-release) Authenticating users
Hi there, In our application when a user logs in, he receives an security token that is valid for his session. This token is a Guid. When he calls a service i have to validate to token of the user. What is the best way to implement this I thought i should implement a membership provider, and pass the token as the user name using the credentials passed to the service by channel factory. I have also an example of implementing a custom user name password validator. What do you think Thanks. Guy Hi Guy , Here is a quick and dirty ( non WS- spec ) solution. If you are using a message contract on the server ...Show All
.NET Development how to retrive all added handlers?
Hello, I am pretty new to .net and hope you don't tease me :) say i have: addhandler textbox1.onchange, addressof validator1 addhandler textbox1.onchange, addressof validator2 ... how do i programmatically get to the list of all validators for textbox1 in othe parts of the program I don't have the VB syntax, but a delegate (which is what events are) has a GetInvocationList method, that returns a list of all methods handling the event: public event EventHandler SomeEvent; Delegate[] methods = SomeEvent.GetInvocationList(); ...Show All
Visual C++ module machine type 'x64' conflicts with target machine type 'X86'
I have converted my project to x64 using Visual Studio Configuration Manager. This is the 2005 Visual Studio Pro final edition, downloaded from MSDN. It all build fine but will not link. I get the following message: module machine type 'x64' conflicts with target machine type 'X86' The compiler command lines look like this: /Od /I "..\..\..\..\..\src" /D "_CRTDBG_MAP_ALLOC" /D "PROJ_SAX2" /D "_DEBUG" /D "PROJ_XMLPARSER" /D "PROJ_XMLUTIL" /D "PROJ_PARSERS" /D "PROJ_SAX4C" /D "PROJ_DOM" /D "PROJ_VALIDATORS" /D "XML_SINGLEDLL" /D "WIN32" /D "_WINDOWS" /D "XML_USE_WIN32_TRANSCODER" /D "XML_USE_WIN32_MSGLOADER" /D "XML_USE_NETACCESSOR_WINSOCK" / ...Show All
Visual C++ Can and how do I extend an array of objects during run time?
Hi, I created an array of objects, based on a class I created to hold data only, at the start of my program. During the run time, I may need to add an unknown number of additional objects to new data. Can I do this How can I increase an array of objects during run timge, one at a time as the need arises For exmaple: myClass aryObjects[10]; .............. How do I add to the aryObjects and make it a aryObjects[11] Thanks. Hi Thankk you for the reply. I open the #include<vector> and found void push_back( const _Ty& _Val) Do I change it to : void push_back( const _Ty* _Val) if not, then where and ...Show All
