alvi_du's Q&A profile
Visual Basic Service Pack for vb?
Hi all, I read a lot of comment these last day about a bug in VB Compiler (HB8013141e). Actualy, my project (and my work) are affected by this bug. A fis is released, but i'm unable to get it (i'm not manager in my society), but a patch is anounced in Vusuas Studio SP1. This SP1 is announced for this summer (probably september... ) Is it already out if not, when (estimate) can we get it It's realy difficult to work without this patch / sp and at this moment, a migration process is studying ...Show All
.NET Development Calling a .NET component from VB6
Hi, I'm new to VB.NET programming and am attempting to create a .NET class that I can call from a VB6 program. I've created a .NET class and a VB6 calling program and have been able to successfully call the .NET class from the VB6 program when I run it locally on my machine. I've installed the .NET framework on a Windows server and have registered the .NET class using the following command: regasm C:\VBNET\DEVELOPMENT\InvAdmissionsCOM\InvAdmissions\InvAdmissions\bin\Debug\InvAdmissions.dll /tlb: C:\VBNET\DEVELOPMENT\InvAdmissionsCOM\InvAdmissions\InvAdmissions\bin\Debug\InvAdmissions.tlb This seems to register the file succesfully. I then try to reference this from my VB6 application. I can browse and see the InvAdmission ...Show All
SQL Server Data disappearing during Run time
When I enter data into a SQL database and save it, the data that I have just added disapears, but when I close the applicaiton and re-open it, it's still there - is there any reason for this and any way to get it to stay Any ideas Sorry about the typo, i was meaning "now". Back to your points 1.a connection to the main instance with an attached database (if by that it means a database, with a child database within it) 2. it's happening in both debugging and deployment Hope this helps - any other question please ask Cheers ...Show All
.NET Development CodeDomProvider Parse Method
Unfortunately the method is not implemented and returns a NOT_IMPLEMENTED exception. I want to be able to create a CodeCompileUnit from source code to be in synch with the Workflow Designer. Using IEventBindingService I can genreate CodeMemberMethods but when I load the generated sources from disk I need a way to re-create the CCU to be in synch. VisualStudio seems to be able to do that. There is an internal class which seems to be able ... Any hint would be very much appreciated. ...Show All
Microsoft ISV Community Center Forums Hybrid between Cells.Select and ActiveCell.CurrentRegion?
Hello guys, Assume I have data like this. Each < > Means a cell. < > Means nothing in the cell. <A1><B1> < >< > < ><B3> If I use Cells.Select, the range will be ("A1: IV65536") too much selection. If I use ActiveCell.CurrentRegion, the range will be ("A1:B1") not enought selection. I wish to select the range ("A1:B3"). What should I do Thank you. Edit: Hello NVM. I found a way to do it. I use previous search on * from the last cell. Why didn't I thought of that before, silly me. Thanks for the reply, but I don't know the boundary of the data. I can't specify it. The data is ex ...Show All
Visual C++ _mbscpy_s pointer confusion
Hi All! I'm new to cpp and getting severely beat up by some pointer stuff. I have an unsigned char array buffer with some data including the length of a string followed by the chars of the string. This byte array is received from a client via socket - all that works fine. I am trying to call _mbscpy_s to get the string out of the buffer: BYTE buf[BUF_SIZE]; // 1024 // buf bytes look like this buf[0] = 0 next four are length of 'name' buf[0] = 9 buf[0] = 0 buf[0] = 0 buf[0] = 0 'name' starts here buf[5] = 112 'p' buf[ 6 ] = 97 'a' buf[7] = 114 'r' etc. Now, the code: unsigned char* name = new unsigned char [iNameLen]; // length is 9 errno_t err = _mbscpy_s( name, iNameLen, &buf[5] ); throws a 'Buffer too small' exception but errno_t err ...Show All
Software Development for Windows Vista Winhelp on Windows Vista
Hi, Does anyone know if the user downloadable winhelp engine be available for the Vista Launch date It is posted on MSDN that winhelp is being deprecated. This is talked about here http://msdn.microsoft.com/library/default.asp url=/library/en-us/dnlong/html/AppComp.asp In the compatibility risks section. I have seen it recommended that ISVs move to html based help. ...Show All
.NET Development ExecuteScalar requires an open and available Connection
Hi, I am using ExecuteScalar function to get a single record from a select statement. This runs fine for some time but after few thousand rows are processed then i get this error: Information: 0x0 at RSRC_PEGPLNS_LOAD, MDL: Exception at OLEDB Connection :System.InvalidOperationException: ExecuteScalar requires an open and available Connection. The connection's current state is closed. at System.Data.OleDb.OleDbConnection.CheckStateOpen(String method) at System.Data.OleDb.OleDbCommand.ValidateConnection(String method) at System.Data.OleDb.OleDbCommand.ValidateConnectionAndTransaction(String method) at System.Data.OleDb.OleDbCommand.ExecuteReaderInternal(CommandBehavior behavior, String method) at System.Data.OleDb. ...Show All
Software Development for Windows Vista Vista - Media State Unauthenticated
Hi all, I am building a Wireless Utility. It uses WPA Supplicant at the backend instead of WlanSvc. It works fine for Windows XP and 2000. But in windows vista I have faced a typical problem. My supplicant succeeds to connect to a AP - at least "Network Connection" shows the adapter as connected and the MAC address of my adapter is also visible in the attached Device List of the concerned AP. But if I use "ipconfig" tool from command prompt it shows the media state of the Wireless adapter as " Media Unauthenticated ". It does not show any IP address againest my adapter and I fail to have the cionnectivity as well. Since this Utility/Supplicant works fine for Win XP and Win 2K, it seems that Vista is pla ...Show All
SQL Server How can i secure my MDF file?
If a user is a local admin of the box they can gain full access to the database via integrated security. They can create their own database and attach .MDF How can i secure the .MDF so that no one can gain access to it problem with creating a new admin user is.... another admin can delete the user. Then all the files that have been encrypted can no longer be accessed..... that is very bad! ...Show All
Software Development for Windows Vista Seeking problem with VMR9
Filter graph consists of 2 source filters: 1. Source filter (which is used to playback AVI file) 2. Custom source filter (which implements CSourceSeeking, based on Seeking Ball example) - push model, ARGB32 subtype uncompressed images As a renderer i'm using VMR9 with 2 input pins, each one for one source filter, in windowless mode. The problem is when I seek (using IMediaSeeking interface obtained from FilterGraph), filter graph seeks only the AVI file, but not the my custom source filter. I've tried debugging and none of the seeking methods are called within my custom source filter. Thank you in advance! Thats what it appears to do for me as well... Intrestingly enough the SDK specifies th ...Show All
Smart Device Development Help with assembly missing
I am porting a VB6 program to VB .NET CE and get this error when trying to run my app on the emulator... File or Assembly name 'Microsoft.VisualBasic, Version=7.0.5000.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A' or one of its dependencies was not found. This assembly does indeed exist in the Windows/Assembly folder. I am running the program on the emulator when this error occurs. Why can't the program find this assembly and if the assembly needs to be located somewhere else, where I am at a standstill until I can get this problem solved. Thanks in advance for any help!! http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=517064&SiteID=1 ...Show All
SQL Server What are the characters that'll fail the insert statement
For eg, insert into tab values ('She's a woman'); What are the other characters that'll fail the insert TIA ! If yoxu want to insert quotes, you have to double qoute them, otherwiese SQL Server will think that the string ended after the second quote, so you have to do something like this: 'She''s the one' HTH, Jens Suessmeyer. --- http://www.sqlserver2005.de --- ...Show All
Visual Studio 2008 (Pre-release) Subscribing to a PageFunction's Return event from another Window
I have a series of PageFunctions and two Windows. One window is the main window for my application, and the other is a window that just contains a Frame. From the main window, I launch the second window, and pass a PageFunction to it that it navigates to. Before creating the window I subscribe to the PageFunction's Return event. The PageFunctions work and allow me to navigate through each one. When I reach the end I call OnReturn(), and it calls OnReturn for each PageFunction along the way recursively, exactly like the sample code. However, the Return event that I subscribed to from the Main Window is not called - I cannot comprehend why. Am I right in assuming the Return event has something to do with a NavigationService that my Mai ...Show All
SQL Server SSIS clustered, accessed by multiple instances
Hi, I have a clustered environment which has many instances in it. I have modified the xml file to allow several instances to use ssis. Everything works great when the instances are on the same node as the clustered ssis. However if they are on different nodes there seems to be an aunthentication problem and it loses my credentials. For some reason it tries to use Anonymous Logon instead. Here is the full error: The SQL server specified in SSIS service configuration is not present or is not available. This might occur when there is no default instance of SQL Server on the computer. For more information, see the topic "Configuring the Integration Services Service" in Server 2005 Books Online. Login failed for user 'NT ...Show All
