Fergus Ko's Q&A profile
Windows Forms Picture box binding
Hi everyone, I need bind a image from a dataset to a picturebox. i found the code in KB but its in Visual C# DataSet ds = new DataSet(); da.Fill(ds, "BLOBTest"); int c = ds.Tables["BLOBTest"].Rows.Count; //BLOB is read into Byte array, then used to construct MemoryStream, //then passed to PictureBox. Byte[] byteBLOBData = new Byte[0]; byteBLOBData = (Byte[])(ds.Tables["BLOBTest"].Rows[c - 1]["BLOBData"]); MemoryStream stmBLOBData = new MemoryStream(byteBLOBData); pictureBox1.Image= Image.FromStream(stmBLOBData); I would greatly appreciate if anyone can translate it i n VB. i have done so far and getting error: dim byteBLOBDa ...Show All
Windows Forms HELP!!! --> setting up terrarium server
well, i have been trying almost every options to get this terrarium server running, but... the problem there i think is that i can not get the "Connection String" right to set server up. i have : WINXP PRO SP1 + VS.NET 2003(SDK1.1) + IIS + SQL SERVER PERSONAL The Only Place that it can make this failure is SQL SERVER SETTING UP ------------------- ...Show All
SQL Server Will PPC 2003 DLL's for SQL CE work on WM5 PPC
Writing an installer to handle switching the DLLs depending on OS version is somewhat of a pain. The SQL CE dlls that we are told to install for PocketPC 2003 and WM5 PPC are different... but I noticed that the 2003 DLLs seam to work fine on a WM5 PPC. Is there a perf hit or some other problems I will run into for doing this that I just haven't hit yet Will this work for any WM5 PPC thanks This might work, but this is not an officially tested or supported scenario. So we recommend to use the WM5 PPC device bits of SQL Mobile when moving to PPC 2005. ...Show All
SQL Server Accessing AS400 Data
I've been trying to use the integrations services to access AS400 data with almost no success. Any suggestions or help you can give me would be appreciated. Some of the issues I can't make sense of are the following. 1. When I set up an OLEDB data source for the AS400 (using IBM's Client Access provider) I always get a warning message about "Cannot retrieve the column code page information from the OLEDB provider". What do I do about this warning 2. If the oledb datasource is a table I can sometimes get it to work (though it seems very slow) but if I make the source a sql query it always fail ...Show All
Smart Device Development Schedule Wakeup From Sleep in C#?
Is there a way to programatically schedule a wakeup of a PPC I'd like the device to wake up at a specific time and perform some tasks. Thanks. Yes you will need to P/Invoke to the CeRunAppAtTime (or better still the more poweful CeSetUserNotificationEx). Both of these are wrapped as part of the SDF so you can take a look at the implementation - www.opennetcf.org/sdf/ Peter ...Show All
Visual Studio Beta 2 - breakpoints in VB
I'm debugging a VB app in VS Beta 2. The debugger breaks upon execution of Application.DoEvents. I get the message that my application has triggered a breakpoint and I end up in _CrtDbgBreak. I have not set a breakpoint in any part of DoEvents code. If I comment out the DoEvents, it runs through that section of code without breaking. If I add a DoEvents elsewhere, it breaks there. Any idea why DoEvents triggers a breakpoint Thanks. Leon I know what's happening. You are using a debug version of windows or has installed the debug symbols, or something near.. i have installed a sebug version of windows ser ...Show All
.NET Development Strongly Typed Dataset Performance Issue
Hi, Since VB.NET 2002 and 2003 there's been some performance considerations that we have to think over in order to decide wether to use strongly typed or untyped datasets. Now I'm trying VB 2005, and I've read some articles where people talk about the improvements (since this release) for strongly typed datasets. Now I wonder, are these improvements good enought can I stop been worried about the memory cost (and so on) when I use strongly typed dataset can someone give me some url where I can find especific information about it Thanks a lot I have not started with typed datasets yet, but I almost ...Show All
.NET Development How to get 64-bit MIDL files to work right?
I have an IDL file that I wrote that builds and runs fine. Now, we have a requirement to make our server run on 64-bit. According to the MIDL compiler docs: "Use the /env win64 switch to generate 64-bit stubs only. The default is to generate dual stubs that run on both platforms." However, I do not find that to be true. If I specify /env win64, I get 64-bit stubs. But, if I don't specify anything, I do not get dual stubs, I get 32-bit stubs that have this: #if !defined(_M_IA64) && !defined(_M_AMD64) So, they won't build 64-bit. Help! No, I never did find a solution to thi ...Show All
SQL Server Maintenance plan job unable to send Mail Alert
Our configuration : SQL Server 2005 June CTP Enterprise Edition version : 9.00.1187.07 OS : Windows 2003 The Problem: After configuring Database Mail account and profile, maintenance plan or job generated with the maintenance plan Wizard is unable to send mail. The SQL Agent error log contains those messages pointing on a bad profile name. Error Messages [264] An attempt was made to send an email when no email session has been established [355] The mail system failed to initialize; check configuration settings [260] Unable to start mail session (reason: Microsoft.SqlServer.Management.SqlIMail.Server.Common. ...Show All
Visual C++ compiler error while converting vs c++6 project to vs c++ 2005 ... error C2065: 'DWORD_PTR' : undeclared identifier
After converting my c++6 solution into c++8, i got these errors from visual studio header files... Somebody knows how i could fix it Here's a list of what's been done : Output Window Compiling... StdAfx.cpp c:\program files (x86)\microsoft visual studio 8\vc\atlmfc\include\afxv_w32.h(228) : error C2065: 'DWORD_PTR' : undeclared identifier c:\program files (x86)\microsoft visual studio 8\vc\atlmfc\include\afxv_w32.h(228) : error C2143: syntax error : missing ';' before 'GetWindowThreadProcessId' c:\program files (x86)\microsoft visual studio 8\vc\atlmfc\include\atlconv.h(92) : error C2061: syntax erro ...Show All
SQL Server Where have the samples gone?
Hello, I've just installed the samples from the June CTP and found that the CreatePackageCS and CreatePackageVB solutions that show you how to create a package programatically in .Net have disappeared. Where are they Are they going to come back I quite liked that sample stuff! -Jamie Jamie, This sample, and possibly another one or two, were temporarily removed from CTP 15 due to insufficient resources for thorough re-testing. They are back since then and you will see them in the next CTP and at RTM. -Doug ...Show All
Smart Device Development Playing system sounds in a PPC
Hi there, I was trying to port my programs from NSBasic to VB.Net, but even when loving to have all the power in my hands and to be able to do things that before needed from external ActiveX controls I’m still fighting with those simple things that get very complicated in VB.Net. I searched up and down in the forums and cannot get a simple way just to play a system sound under certains events in my program. I can understand about more complexity for new tools but not about to make complicated what before was so easy with eVB or Visual Script. Is this really so horrible Really do we need to write some many lines of coding as I saw ...Show All
SQL Server Real Time ROLAP different then ROLAP
What is the benefit of setting the proactive cache to Real Time ROLAP. Wouldn't this be the same as ROLAP. Confused on why there is such an option. Books online doesn't seem to answer it clearly. Proactive caching adds the ability to automatically detect changes in source data and update Analysis Services objects appropriately. In the case of Real-Time ROLAP (which was also an option in AS 2000), the AS server can detect data changes (via events, polling or client-initiated notification) and invalidate its in-memory cache - without proactive caching, explicit processing would be needed to dro ...Show All
Windows Forms deploying j# runtime quietly
Hello, i want to create a deployment project in vs2003 for a j# project which automaticaly installs the j#-runtime if it isn't installed on the clients mashine. i already done this with a launch condition. the launch condition forces to run a .bat file which starts the j#-runtimeinstallation and at finish, restarts the .msi again. i want to get rid of the uggly dos-window which pop up when running the .bat file. it would be nice when the j#runtimeinstaller can be put into the .msi file too. any help is appreciated. best regards, guerkan ...Show All
Visual Studio Sorting within a sub report
I have added a subreport to another report. The subreport has a sortable column. This works fine to sort with when running the report by itself but when run as a subreport and clicking on the sorting I get this error. Microsoft.ReportingServices.ReportProcessing.ProcessingAbortedException: An error has occurred during report processing. ---> Microsoft.ReportingServices.ReportProcessing.ReportProcessingException: An unexpected error occurred in Report Processing. at Microsoft.ReportingServices.ReportProcessing.Persistence.IntermediateFormatReader.Initialize(Stream stream) at Microsoft.ReportingServices.Repo ...Show All
