visual-studio-languages-forums,net-framework-forums,visual-basicRelated issues-Collection of common programming errors
msdn
visual-studio-languages-forums windows-desktop-development-forums c-standards-extensions-and-interop
Hi All,When I’m calling CFile::GetStatus with the shared folder in another machine, it’s returning 0 and the last error points to “Access Denied”. I also tried with CFileFind class. The temp folder has full control for the currently logged user.e.gUsing CFileFind classCFileFind f;BOOL b = f.FindFile( “\\\\mysever\\temp” );With CFile classCFileStatus fs;CFile::GetStatus(“\\\\mysever\\temp”,&fs);Sorry if off-topic to this forum.
msdn
visual-studio-languages-forums net-framework-forums visual-basic
I am using VB.net and am puzzling over an issue which cropped up. I have writen a POS application and am writing a number to a .csv file after each transaction. The problem I am having is this number is written to the file 3 times for each transaction. It should only write once. Here is the code I am using:lastbandnum = StartBandNum – 1Trymystreamwriter = File.AppendText(Application.StartupPath & “\saledata\lastband.csv”)mystreamwriter.Write(lastbandnum + &qu
msdn
visual-studio-languages-forums net-framework-forums visual-basic
HiI am struggling to successfully implement some popup menus. I can get them to work but they don’t look and work as well as I would like them to.What I am after is the look-and-feel of popup menus in Office: a list of menu items, some of which indicate a further set of submenus with a right-facing arrowhead. Clicking on or just scrolling over these submenu items reveals a further popupwhich aligns with either the left or right side of the original popup so that all the items
msdn
visual-studio-languages-forums net-framework-forums visual-basic
I want to introduce my students to ms exams, at present we are learning visual basic.net, and I would like to scatter some relevant questions among the learning to challenge them. However I am not sure where to find sample questions, or old real questions.Does anyone have any links or resources available?This is the level we are at, the manual on the link is already outdated, but it gives ideas.http://xmb.stuffucanuse.com/xmb/viewthread.php?tid=8457
msdn
visual-studio-languages-forums windows-desktop-development-forums c-standards-extensions-and-interop
Dears,I have a question regarding the destructor calling mechanism difference between Visual C++ 2005 and Visual C++ 6.0. When i write following code in Visual C++ 6.0 it fails to compile. But when i write it in Visual C++ 2005 it is working well. What could be the reason for this difference? The constructor/destructor of virtual base class is called by “most derived class”. Here the most derived class is TryDerive and it is derived from class NonDerivable. Class NonDerivable is derive
msdn
visual-studio-languages-forums windows-desktop-development-forums visual-c
Hi All, I’ve posted a few times here in regard to a fortran/C++ multi-lang project in VS2008. I’ve tried a few things and have run into the following problem: I have some very old fortran libraries that are calling some PowerStation 4.0 libraries apparently. I have found the PowerStation libraries and have added them to the project, but they are causing some problems because they contain some duplicate definitions. Is there a way for me to allow the newer libraries (in this case libcmtd.lib
msdn
visual-studio-languages-forums windows-desktop-development-forums visual-c
I found a bug in VS2008/SP1 C:int_tmain(intargc, _TCHAR* argv[]){doubledest;// two different cases but the same error!#if 0unsigned long long1 = (long) -9500100; // valid, no overflowlong long2 = 100;long long3 = 1;#elselong long1 = -9500100;unsignedlong long2 = 100;long long3 = 1;#endifdest = long1 long2 long3; /*mov eax,dword ptr [long1]add eax,dword ptr [long2] add eax,dword ptr [long3] mov dword ptr [ebp-0FCh],eax // eax = 0xff6f0aa1mov dword ptr [ebp-0F8h],0 // <— 0x00000000ff6f0aa1f
msdn
visual-studio-languages-forums windows-desktop-development-forums visual-c
Hi,I would like to create a project which can do the following: Create a window into which I can paste a series of data. I have an algorithm which will operate on the data and which will create severeal arrays of further data. I will then need tocreate an excel workbook, copy the arrays of data into the workbook then create charts with the datasets.A little background. Some years ago I created a VB6 project to do this. The project was used primarily to speed up my algorithm development
msdn
visual-studio-languages-forums windows-desktop-development-forums visual-c
HiI am a hobby programmer with chess interest and I am trying to create a Win app (exe) chess GUI (using cwchessboard) in MSVisual C++.(I am very new to C/C++ & my hobby programming has so far included Java and Perl mainly).I have started a new project in VisualC++ express edn and included files from cwchessboard. It does not run or compile & here is the buildlog.htmBuild Log Build started: Project: RPDVSChessCGUI, Configuration: Debug|Win32Command Lines Creating temporary file &quo
msdn
msdn
net-framework-forums windows-presentation-foundation-wpf
I’ve been tearing my hair out for hours on this one. I have a set of tabs, and I’d like to keep track of how many items are invalid.internal class ValidatingTabItem : TabItem{private int ErrorCount;internal ValidatingTabItem(){this.AddHandler(Validation.ErrorEvent, new RoutedEventHandler(OnValidatingTabValidationError), true);FocusManager.SetIsFocusScope(this, true);}private void OnValidatingTabValidationError(object sender, RoutedEventArgs arg){var e = arg as ValidationErrorEventArgs;if (
msdn
net-framework-forums windows-presentation-foundation-wpf
I’m attempting to use a Font Family in my XAML. The Family is named Stone Information. It consists of 6 files that reside in a Fonts folder of my project:StoneInf.otfStoneInfBol.otfStoneInfBolIta.otfStoneInfIta.otfStoneInfSem.otfStoneInfSemIta.otfEach file is set to Resource, Do not copy.I’d like to use FontWeight and FontSytle to determine which font file is used–like this:<FlowDocument><Paragraph FontFamily=”/Fonts/#StoneInformal” FontWeight=”Normal” FontStyle=&qu
msdn
net-framework-forums parallel-programming-with-the-net-framework
Hi,I am just trying to see if parallel has significant changes in time taken to loop through data rows in a table or if simple foreach is better.FYI, I don’t have to update even single column in this code, my target is to just loop throughdatarows and print values to some other source of each column.So for this I was just trying to find out if I can make use of Parrallel programming to speed up the looping.Results are bit surprising me, for Simple loop it is taking 6 but for Parallel it is takin
msdn
visual-studio-languages-forums net-framework-forums visual-basic
I am using VB.net and am puzzling over an issue which cropped up. I have writen a POS application and am writing a number to a .csv file after each transaction. The problem I am having is this number is written to the file 3 times for each transaction. It should only write once. Here is the code I am using:lastbandnum = StartBandNum – 1Trymystreamwriter = File.AppendText(Application.StartupPath & “\saledata\lastband.csv”)mystreamwriter.Write(lastbandnum + &qu
msdn
visual-studio-languages-forums net-framework-forums visual-basic
HiI am struggling to successfully implement some popup menus. I can get them to work but they don’t look and work as well as I would like them to.What I am after is the look-and-feel of popup menus in Office: a list of menu items, some of which indicate a further set of submenus with a right-facing arrowhead. Clicking on or just scrolling over these submenu items reveals a further popupwhich aligns with either the left or right side of the original popup so that all the items
msdn
visual-studio-languages-forums net-framework-forums visual-basic
I want to introduce my students to ms exams, at present we are learning visual basic.net, and I would like to scatter some relevant questions among the learning to challenge them. However I am not sure where to find sample questions, or old real questions.Does anyone have any links or resources available?This is the level we are at, the manual on the link is already outdated, but it gives ideas.http://xmb.stuffucanuse.com/xmb/viewthread.php?tid=8457
msdn
net-framework-forums windows-communication-foundation-serialization-and-networking
I have a WCF Library hosted by an IIS6 website that runs fine on my Server2003 platform. I transferred the host website and WCF library along with a test client to my Vista Ultimate 64 bit platform where the hosting website is hosted in IIS7. It wont run on the vista platform. I installed the Web Hosting application and regenerated the service reference in the client. But when I make the call to the service I get the following exception…An error occurred while receiving the HTTP response
msdn
net-framework-forums windows-communication-foundation-serialization-and-networking
Hi i have a WPF application that uses a service reference to a web service…I have a component that track the progress of each call that is made to the web service.But i seem to have some sort of bug here, it only occurs on some machines and not often.. I start a call with MethodNameAsync and display the progress bar until the matching Completed event occurs.some times i call 3 different async methods in a row but only the two of them get their Completed event raised so the GUI will be locked a
msdn
net-framework-forums claims-based-access-platform-cba-code-named-geneva
I am receiving this error when I try to download this link:Thesystem has encountered an unexpectederror.We apologize for the inconvenience. The issue will be addressed asquicklyas possible.Downloadfrom here: http://connect.microsoft.com/site642/Downloads/DownloadDetails.aspx?DownloadID=25391I am working on step 2 and step 5 of this document: http://technet.microsoft.com/en-us/library/ee943175(v=ws.10).aspxDoes anyone know where these files live now, or have a copy of them on
msdn
net-framework-forums net-framework-setup-and-servicing
I’ve been unable to install .net framework 3.0. I continue to get an error:[05/14/08,13:29:04] Windows Communication Foundation: [2] Error: Installation failed for component Windows Communication Foundation. MSI returned error code 1603[05/14/08,13:29:13] WapUI: [2] DepCheck indicates Windows Communication Foundation is not installed.I’ve uninstalled and reinstalled 2.0, also IIS, run a .net cleanup tool, run a tool to set registry permissions – all to no avail. I’m running XP and just installed
msdn
visual-studio-languages-forums net-framework-forums visual-basic
I am using VB.net and am puzzling over an issue which cropped up. I have writen a POS application and am writing a number to a .csv file after each transaction. The problem I am having is this number is written to the file 3 times for each transaction. It should only write once. Here is the code I am using:lastbandnum = StartBandNum – 1Trymystreamwriter = File.AppendText(Application.StartupPath & “\saledata\lastband.csv”)mystreamwriter.Write(lastbandnum + &qu
msdn
visual-studio-languages-forums net-framework-forums visual-basic
HiI am struggling to successfully implement some popup menus. I can get them to work but they don’t look and work as well as I would like them to.What I am after is the look-and-feel of popup menus in Office: a list of menu items, some of which indicate a further set of submenus with a right-facing arrowhead. Clicking on or just scrolling over these submenu items reveals a further popupwhich aligns with either the left or right side of the original popup so that all the items
msdn
visual-studio-languages-forums net-framework-forums visual-basic
I want to introduce my students to ms exams, at present we are learning visual basic.net, and I would like to scatter some relevant questions among the learning to challenge them. However I am not sure where to find sample questions, or old real questions.Does anyone have any links or resources available?This is the level we are at, the manual on the link is already outdated, but it gives ideas.http://xmb.stuffucanuse.com/xmb/viewthread.php?tid=8457
msdn
visual-studio-languages-forums net-framework-forums visual-basic
Hi, In my windows application i created a custom control and created some properties also. the problem is when i am using this control in my windows application form, in the property window it displaying some properties only but in coding i am gettingall properties.how can i get all properties in property window Private strGetInfoScreenKey As GetInfoKeys = GetInfoKeys.Enter Private strPOSStatus As String Public Property POSStatus() As String &nbs
msdn
visual-studio-languages-forums net-framework-forums visual-basic
Hi, I’m learning the serial port programming. So, I study the code samples from MSDN – VB101SamplesBCL2http://download.microsoft.com/download/c/2/3/c2318968-80aa-43de-a755-9c0763a2dca8/VB101SamplesBCL2.msiWhile ran the solution of “UsingTheSerialPort”, It shows error:It highlights one sentence textBox2.Text = SerialPort1.ReadLine() — Line 40 ,and says :”InvalidOperationException was unhandled – Cross-thread operation not valid: Control ‘textBox2’ accessed from a thread other than
msdn
visual-studio-languages-forums net-framework-forums visual-basic
In my Try Catch, sometimes the exception returned looks like it is a NULL or space (I can’t really tell, just that when I print it out in a MsgBox, it is blank sometimes which causes problems later) sometimes. how can I check the exception for length or something then if it’s null, replace that blank exception with some sort of text i?I have to pass the execption to my email function and my email function cannot take a null like this…so I need to convert it to a valid string if it is null or
msdn
visual-studio-languages-forums net-framework-forums visual-basic
Hello, I have a created a simple program to register items in a list. See Image in bottom of post:The objective is simple enough. To register the amount of each item. My problem however is that this simple program requires alot of code, and I hope there is an easier way of doing this.My general question is: Are there are simpler way to register a list as in the picture below. I am open to suggestion where one dont use labels to create the list.I am writing this post with the hopes of learni
msdn
msdn
visual-studio-languages-forums net-framework-forums visual-basic
We have an application developed in VS 2005 Visual Basic and using the built in Crystal Reports for a couple of reports. We can successfully install and run the application on 32-bit machines, in XP and in one new Windows 7 64-bit machine. Howeverwhen we test the installation program in an ASUS laptop with Windows 7 OS and 64-bit architecture we get error 1904 (dll failed to register) on ExportModeller.dll and several other dll’s in a Business Objects folder. If I “ignore&q
msdn
visual-studio-languages-forums net-framework-forums visual-basic
I remove the datagridviewcomboboxcolumn from the datagridview and dispose it. When I go to dispose of the datatable that is the datasource to the comboboxcolumn an ArgumentOutOfRangeException is thrown from the datagridview. Apparently the datagridview is still handling events for datagridviewcomboboxcells for comoboboxcolumns that have been removed from the datagridview. Any tips on how to prevent this?
Web site is in building