Bjarne K's Q&A profile
Windows Forms Serialization permissions
I'm trying to serialize some stuff for DNA. When I try, I get the following exception: Request for the permission of type System.Security.Permissions.SecurityPermission, mscorlib, Version=1.0.3300.0 ... ... ... What's that mean Do I need to grant the permission somehow Nope, and yes, I've implemented this. Don't worry, it'll be locked down next v ...Show All
Smart Device Development Compiling with Shared MFC DLL support causes CoCreateInstance() to fail
Compiling with Shared MFC DLL support under VS2005 causes the following CoCreateInstance() call to fail with E_NOMEMORY. Compiling with static MFC support eliminates this problem. We have tried things such as moving the MFC 8 DLL's to from the application-specific installation folder to \Windows on the offending device, and the error still occurs. This error only seems to occur on certain 2nd edition devices (e.g., a Dell Axim X50). It does not occur on a 1st edition device, even when the MFC 8 DLL's reside in the application-specific installation folder. We are using VS2005 to target PPC 2003 at this point. hr = CoCreateI ...Show All
Visual C++ Turn off unicode using pragma or something inside the code itself?
Hello, I'm using Visual C++ 2005 and I was wondering if you can use a #pragma or something inside the code itself to turn off unicode I know you can do it manually from inside the IDE by going to Project->Properties->Configuration Properties->General and there setting Character Set to "Not Set", but I'd like to do it from the code itself if possible. Similar to linking in non-standard libs by doing #pragma comment(lib, libname) (if I remember that one correctly). You could do this :- #undef UNICODE #undef _UNICODE mindcooler wrote: Hello, I'm using Visual C++ 2005 and I was ...Show All
Visual Studio Team System Error creating project in TeamSystem...
Fails when trying to add a new project: 04.19.2005 04:41:41.303 | Module: ELeadServiceMediator | URL for eLead web service retrieved as " http://teamsystem:8080/bisserver/EleadWebService.asmx " from the registration service | Completion time: 0 seconds 04.19.2005 04:41:41.303 | Module: ELeadServiceMediator | eLead web service proxy constructed | Completion time: 0 seconds 04.19.2005 04:41:42.579 | Module: ELeadServiceMediator | Template Information for domain "teamsystem" retrieved from eLead web service | Completion time: 1,2756084 seconds 04.19.2005 04:41:53.172 | Module: Engine | Retrieved IAuthorizationService proxy | Completion time: 0 ...Show All
Smart Device Development Release issue
I have two issues when I tried to create CAB file for my product. I created a shortcut inside the "Start Menu" folder, but it changed to "Start Menu\Programs" folder automatically after I run the CAB file. Is this the issue of the CAB file or the issue of the Pocket PC (My Pocket PC is ASUS A620 Series, OS is MS Pocket PC Ver 4.20.0 (Build 13252) After I uninstalled my product through ActiveSync (Ver 4.1), the shortcut was not uninstalled, it left in the "Start Menu\Programs" folder, so when I installed it again, it created a "shortcut(2)" icon in this folder, which was not acceptable by my bo ...Show All
Windows Forms Inserting into SQL Server Image Type Columns
Hello Techies Can find the sub routine that i have written to update an Image column in SQL Server 2000 using the dataset, SqlDataAdapter and SqlCommand based on the Empid in the Employee table. It works fine. Private Sub updateImage() Dim strSQL As String strSQL = " select * from emp ...Show All
SQL Server isnull() Problem
Today we get a call from one of our customers. One of our Apps gets a time-out error from SQL Server 2000 (SP4). After searching we get the following result: This instruction becomes never finished (>30 Minutes waiting) select isnull(T025.C048, '') as [int. Vermerk] FROM T025 ... This statement is ok (1 Sek.) select T025.C048 as [int. Vermerk] FROM T025 ... C048 is varchar(10) nullable The value of the field was "WNO" - not null. After creating an index with the field C048 the problem was solved. What happend Thanks. Other columns did not had problems with isnull() and we did not test other fun ...Show All
SQL Server The 'A request to send data to the computer running IIS has failed' Exception
Hi guys, When I do the RDA process, this weird problem comes out. I don't think there is any problem with the connction between the SQLce Server Agent and SQL Server agent. Everytime I run the RDA process, it looks like it is waiting for the time out of the connection. And If I cancel this process and rerun it, it works out and seems there is no problem at all. The conclusion is that, if i start the RDA, 20 or 30 minutes after a previous RDA process, this exception is definitely coming out. BTW, the HResult in the exception is -2147012867. Help...... Cheers, Justin Hi Justin, Seems like as if the previous RDA did not rele ...Show All
Smart Device Development JScript in PIE (Pocket PC 2003+)
The latest documentation for Pocket Internet Explorer included in VS2005 Docs implies that common methods like document.getElementById() is not supported. Say it ain't so. One must roll one's own Thanks, David Seifert You'll find more help for PocketIE questions from one of the forums below http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=223605&SiteID=1 ...Show All
Visual Studio Express Editions to close or not to close
Hello, I have this form, form1 and when it closes, I want it to like NOT CLOSE... How is that possible, do I do like Public...{blah}...Handles.Me.Closing Dim f as Form = Form1 f.show end Sub Thank You, My brain is not fully functioning right now, its 12:40 a.m... ZZZzZZZZZZ.... Thanks! Keehun Nam Are you talking about .... i.e. Something Click Event Me.Hide() End Sub Form is unseen but still ' alive', can reveal from calling form by clicking xxx form.show( or showdialog) Just a REAL NEWBee wondering aloud ...Show All
.NET Development Application_AcquireRequestState Execute twice per request
Code inside of the global.asax file on the Application_AcquireRequestState event fires twice for each request. One the first request I have session state and on the second, I do not. Here is simple test I ran to verify that it is running twice: Protected Sub Application_AcquireRequestState(ByVal sender As Object, ByVal e As System.EventArgs) If Request.IsAuthenticated Then System.Diagnostics.Debug.Print( "Inside Application_AcquireRequestState" ) End If   ...Show All
Visual Studio Express Editions BindingNavigator
Hay, Whit this code i try to go to a reccord whit an BindingNavigator Dim ring As String ring = InputBox( "Type een ringnummer" , "Ring nummer" ) If ring = "" Then Exit Sub Else Me .TVogelBindingNavigator.Items.Find(ring, True ) End If Is this correct or what do i wrong. I use this code in the changed event , but thanks for the RE: Dim index As Integer Dim zoekstring As String zoekstring = Me .BindingNavigatorTextBoxZoeken.Text index = TVogelBindingSource.Find( "Ring nummer" , zoekstring) M ...Show All
Visual Studio 2008 (Pre-release) Binding to an interface as a "data source"
It would be very nice if the XAML was able to bind to a WCF service and execute methods on that service. This would save loads of code in applications taking advantage of service-oriented architecture, by providing binding from simple UI to services underneath. Developing to a service-oriented architecture, you have a business service layer that executes methods and gets back data. (for example, "get client list", "get user info list", etc.). A portion of any application is typically a shallow UI layer on top of these services. I've noted that XAML has XML-based data binding using the XmlDataSource tag with ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Using Text
I found that it would be really useful if I could get the pixel length of any string in DX that I want to display (I'm using 2D) so I can keep it withing bounds of a textbox for example. Does anybody know a way of doing this If not, does anybody know another way to achieve the scrolling in a textbox Much as I hate to bring further bad news... if you are using DirectDraw for your 2d graphics then note that it is deprecated (i.e its still there but you should avoid using it for new projects) in DX9 so you need to use the Sprite class or draw your own sprites using 2 triangles and a texture. (I'm as ...Show All
Smart Device Development NETCFSetupv2.exe
I am having trouble installing NETCFSetupv2,exe to update a treo 700w to the .netcf 2.0. As the install is taking place, I get the error Application Manager can't install this application to your device due to an invalid setup file. I am not even sure if I need this installed on the new treo 700w I am only installing becuase I have tried to run an application I just wrote with MSVS 2005 and I get the error that this program needs a newer version of the .netcf Any help is appreciated Thanks Jon Stroh I dont know about the mobile device however please let me remind you that some mobile devices, including PPC devices, do no ...Show All
