KSchram's Q&A profile
Visual Basic VB 2005 (In Visual Studio 2005) WebBrowser Control - Question
Hello Ive made a application which features a embedded WebBrowser Control in the form. In the properties box where it states url i dont wish to add a website url as my application runs within the program files directory. Now if i point the link to a html file located in the prog files directory it works fine without any trouble. Id like to know if there is a way to just add the link in the properties box as "start.html" is this possible or do i have to keep using that horrible long link to the program file. Any comments would be appreciated. Thankyou Anthony. Hi Anthony, I believe you should not use an a ...Show All
SQL Server Problem with a Replication with two publications
Hi. I have a database with two publications. One publication is used to replicate data among 4 SQL Servers, while the other is used for the replication with SQL Server CE clients. The problem here is that the SQLCE receive a number of changes that it is not correct. Before establishing the publication for SQL Servers the SQL CE clients were working great, but now i have this problem. Is there any patch or fix I should install on the server , or do you know how can I solve this Thank you. Omar Rojas Hi, Mahesh. I updated the SQL Server to SP3 and all seems to work fine. Either way, Some rows are not being replicated on some tables and ...Show All
Visual C++ How do I create a folder for my library files?
I have a DLL project and I want to create a folder to contain my library files. In Visual Studio 6, all of our projects have a "Library Files" folder that contain our .lib files. When using Visual Studio 2005, I right click on the project and try to add a folder called "Library Files" and all it does is create a physical folder in the project directory and I cannot associate .lib files with it. How can I create a folder to hold my lib files Thanks. After you create this physical lib directory, you can just add it to the properties of your project as described at http://msdn.microsoft.com/library/default.asp url=/ ...Show All
Smart Device Development Strange errors using eVC++
Hi, just started to migrate an app to my PocketPC. I am trying to write a native C dll that communicates with a driver. So I just open a project in eVC and tries this in the main cpp file: // Simple.cpp : Defines the entry point for the application. // #include "stdafx.h" int WINAPI WinMain( HINSTANCE hInstance, HINSTANCE hPrevInstance, LPTSTR lpCmdLine, int nCmdShow) { CreateFile("TAP", GENERIC_READ | GENERIC_WRITE, 0, 0, OPEN_EXISTING, FILE_ATTRIBUTE_SYSTEM | FILE_FLAG_OVERLAPPED, 0); return 0; } whereupon I get the compiler error: error C2664: 'CreateFileW' : cannot convert parameter ...Show All
Visual Basic Print directly to the printer
Dear all...^^. I have a program needs to print directly to a Zebra TLP 2844-Z barcode printer. I tried the codes in http://support.microsoft.com/ scid=kb;EN-US;322090, but an error occurred when i run it, as follows: A call to PInvoke function 'test!test.RawPrinterHelper::OpenPrinter' has unbalanced the stack. This is likely because the managed PInvoke signature does not match the unmanaged target signature. Check that the calling convention and parameters of the PInvoke signature match the target unmanaged signature. May I ask if any one has any other idea of printing directly to printer in VB2005 Thanks Raymond Here ...Show All
Visual Studio Team System Custom Rules
Hi I am experimenting with some custom rules using FxCop SDK v 1.32. Need advice on how to build custom rules for- 1. All composite statements (if-else, for each etc) should have curly braces even if they have just one statement to execute 2. Classes, methods , properties etc should have least required visibility modifier. Can anybody help Regards, Amit Hi Amit, Unfortunately, rule #1 cannot be written with FxCop because we analyze the IL code in the binary which will be identical regardless of changes like whitespace and curly brackets in C#. For rule # 2, do you mean the follow ...Show All
SQL Server Alternative Solution- Query not getting executed
Hi I’m facing this very unusual problem. Let me first give a background – This is a system consisting of Distribuors, Dealers and Brands. I have few tables as mentioned below (these are just prototypes of the actual table): ‘REL’ table: This stores the Distributors and Dealers relationship. E.g. say DISTRIBUTOR DEALER   ...Show All
Visual Studio Express Editions Extending the Personal Web Site Starter Kit
I have read the article on extending the Personal Starter Kit by Bill Evjen. There are 3 image files that he makes a reference to, that I cannot find. <table width="90%"><tr> ImageUrl="../Images/button_sitecontent.gif" ImageUrl="../Images/button_manageusers.gif" &nb ...Show All
Software Development for Windows Vista Linking PlayCap with VisualC++ 2005 Express
Hello to everyone. I am trying to compile PlayCap example in Platform SDK with the Express version of VisualC++ 2005. After having set the correct paths for includes and libs, and having modified corewin_express.vsprops, I succeded to compile and solve many of the linking errors. There still are these errors: playcap.obj : error LNK2001: unresolved external symbol _PIN_CATEGORY_PREVIEW playcap.obj : error LNK2001: unresolved external symbol _MEDIATYPE_Video playcap.obj : error LNK2001: unresolved external symbol _IID_IBaseFilter playcap.obj : error LNK2001: unresolved external symbol _CLSID_VideoInputDeviceCategory playcap.obj : error LNK20 ...Show All
Visual FoxPro RSA Public/Private Key Encryption in VFP 9.0
Hi, I need to be able to decrypt data pulled from a MySQL table encrypted with RSA public/private key encryption within a FoxPro application. I am currently using the FoxPro Foundation Class known as _cryptapi as a wrapper to the CryptoAPI interface. The problem I'm having is that I can't seem to figure out how to decrypt a RSA encrypted string of data. I know that the _cryptapi class provided by Microsoft uses the Microsoft Base Cryptographic Service Provider which in itself uses RSA public key encryption algorithms, but for some reason I am having the hardest time finding the methods that support this in the _cryptapi fo ...Show All
Visual Studio 2008 (Pre-release) Troubles with DLINQ
I'm having troubles with DLINQ. t_parent table parent_id parent_name 1 Avalon 2 Indigo 3 Whidbey 4 Yukon t_child table child_id parent_id child_name 1 1 Chris Anderson 2 &nbs ...Show All
Visual Studio Express Editions Database not updating. Just installed SQL Server Database. Please help!
I just installed SQL Server 2005 Express Edition to allow me to create databases in VB Express. The installation went fine (or so it seemed). When I complete the example to create a database and try to save the changes in the file, they are not retained. I use the following statement to verify the changes have been made, but when I exit and return to the database, the changes are not made. If I make changes, the If statemetn correctly indicates the number of cahnges. But the are not saved. Any suggestions Dim RowsAffected As Integer = 0 RowsAffected = Me .CustomerTableAdapter1.Update( Me .MyCompanyDataSet1.Customer) If ...Show All
Visual Studio Express Editions Using a char variable in a array position
Is it possible to use a char variable to point to a position in an array For Example, <code> char position; std::cin >> position; char array[] = { 'A', 'B', 'C', 'D' }; std::cout << array[ position ]; </code> I think I understand why it doesn't work. Its because a number in a char is not the same number, i.e. '1' = 49, '2' = 50, but is it possible to convert it to an integer I am not quite sure what you want to do, but you may convert a Char to a byte by means of: Byte = Asc(Char). Then you can use the byte as an index in the array. ...Show All
.NET Development Bitwise byte operators ?
I have a run the simple following lines and I am very surprised by the result byte a = 1, b = 2; Console.WriteLine((a | b).GetType()); I get a System.Int32 output. Why didn't I get a byte output Performance wise, it does not change anything, and it has the advantage of making sense in terms of typing. Thanks in advance, Joannes int is the smallest signed type for which the | operator is predefined, so the arguments get promoted to ints and the result is an int. See http://msdn.microsoft.com/library/en-us/csspec/html/vclrfcsharpspec_7_10_1.asp ...Show All
SQL Server I can't change my sql login user's password in SQL Server 2005 Express
SQL Server 2005 Express keeps putting in a different password than the one I chose. I would check the properties on the login I want to change. Then I change the password and it gets accepted. When I try my web application, I get the dreaded "login failed for <loginname>". I look at the properties again and see my password never change. Is this a bug I ever tried this syntax to no avail: CREATE LOGIN <loginname> WITH PASSWORD='<mypassword>' CHECK_EXPIRATION = OFF, CHECK_POLICY = OFF Can you provide some additional information, such as: - wha ...Show All
