DiasVFX's Q&A profile
Visual Basic DAODBEngine
G'day After a VB6 to VB.NET 2.0 upgrade I am left with an IBM DB connection problem. The original version works. The upgrade doesn't. They are both running on the same PC and are configured the same. Original Code: Public dbIBMHost As Database Set dbIBMHost = Workspaces(0).OpenDatabase("", False, False, _ "ODBC;DSN=ValidDSN;UID=ValidUserID;PWD=ValidPassword;") New Code Public dbIBMHost As dao.Database dbIBMHost = DAODBEngine_definst.Workspaces(0).OpenDatabase("", False, False, _ "ODBC;DSN=ValidDSN;UID=ValidUserID;PWD=ValidPassword;") and the upgrade kindly supplied the following Module to define DAODBEngine_definst Module UpgradeSupport Friend DAODBEngine_definst As New dao. ...Show All
Visual Studio Team System Why don't I have contributor rights?
I'm evaluating TFS using a workgroup edition. Apparently I have no contritutor rights. When I right click the project node in VS it says No Commands Available. I can see the files and folders in the source control explorer but all check in, check out etc operations are disabled. I'm a member of the following groups ( UnikTest is the name of the project in question): [SERVER]\Team Foundation Licensed Users [UnikTest]\Contributors [UnikTest]\Project Administrators The project groups are members of the Team Foundation Valid Users group. The project was created using a wizard. The TFS user used to setup TFS, SharePoint and Reporting services has contributor rights (can add files and folders etc.). I've followed the guide Team Foundation Serv ...Show All
Visual Basic How to get integers from a string?
Hi iam a new guy for VB My question is how to get the integer numbers from a string,(For example: NewText="Asdjskjd 303 6845"and i only want 303 6845) Thank you Thanks , what if the spaces between the numbers are necessary can i do somthing like to find the first number in the string and then get the next 8 numbers(including spaces) and How it can be done Thank you ...Show All
.NET Development How to get all the cookies
Hello, I have a problem with getting all the cookies. I use HttpWebRequest and Ethereal shows the following HTTP/1.1 302 Found : thanks for reply.. but, i have problem still.. I made a simple app. when I send Request, I expected 8~9 cookies because Fiddler Show that cookies... But,, cookie count was only one. private void button8_Click(object sender, EventArgs e) { CookieContainer cookies = new CookieContainer(); ServicePointManager.Expect100Continue = false; string mystr = "id=myid&pw=mypass"; byte[] data = Encoding.Default.GetBytes(mystr); HttpWebRequest wr = (HttpWebRequest)WebRequest.Create(" http://login.daum.net/Mail-bin/login ...Show All
Visual Studio Express Editions setwindowshookex and hooking
can any body give me a simple setwindowshookex function that uses the WH_JOURNALRECORD thanks very much For such issues, please use the win32 dev newsgroups at http://msdn.microsoft.com/newsgroups . OTP Thanks, Ayman Shoukry VC++ Team ...Show All
Visual Studio Express Editions to include API in COM
please tell me how to include an API function in a COM component ...Show All
Visual Basic Recieving 'i??' character symbols when loading text files not containing them
I am writing a cross-platform application and I am using Visual Basic 2003 Standard for the Windows XP version of the application. My Windows Mobile version writes information out to a text file and my Windows XP version can load and modify them. The text files do not contain the i symboles, but when I load the text files into my Visual Basic application each file loaded has those symbols attached to the begining of the first line I read into my XP application. Does anyone know why this is happening At first I thought my Windows Mobile Program was the culprit but considering the fact that those symbols are not in the text file when I view them (I used 3 different text editors to make sure) so I am assuming it's something I need to ...Show All
SQL Server how to save filename as columnname in Flat File Dest config
I have created a SSIS pkg (datasource and flat file destination) I need to have the flatfile renamed after each exec to a column name that exists in the table I am running the pkg against. Where does the code get put to make this change after the file has been created Basically if I could run T-SQL after the file creation, I could make it work. thx.. Use an Execute SQL task to retrieve whatever you need (the full file name) into a variable, using a ResultSet of 'Single row' in the General node and mapping the output of the task to a variable in the 'Result Set' node. Then, rename the file using a File System Task to the variable retrieved in the Execute SQL Task. Do so by setting the IsDestinationPathVariable property ...Show All
.NET Development file upload to https server not working
i am sending a file to a https server and i am not getting back the same results as iexplorer is, or the same page. my page has an error that its displays, which is "Error: Cannot find bean: "UploadBean" in any scope" i captured the stream from iexplorer and my app and its the same thing being sent. any ideas here is the file that i am sending using multipart-form content type StringBuilder^ sData = gcnew StringBuilder(); sData->Append("--" + sBoundary); sData->Append("\r\n"); sData->Append("Content-Disposition: form-data; name=\"firstTime\""); sData->Append("\r\n\r\n"); sData->Append("F"); sData->Append("\r\n"); sData->Append("--" + sBoundary); sData->Append("\r\n"); sData->Append("Content-D ...Show All
SQL Server sp4 on dev edition 2k
I'm running SQL Server 2000 (Developer Edition) on an XP machine. I'm trying to apply Service Pack 4, which, though I haven't service packed SQL Server 2000 in a couple years (most recently working more in 2005), I have installed SPs against SQL Server without difficulty in the past. I've downloaded the x86 SP4 exe. I extact the package ... but when I got to run setupsql.exe from a command prompt, I get nothing -- no dialog, no apparent install. silent switch is NOT specified. as I'd mentioned, I was already planning to drop a new image on the machine and reload my dev software. having done so, I was able to apply sp4 without issue. thanks for the links though, I may check them out in the future. ...Show All
Windows Search Technologies WDS won't index my Outlook files
WDS was working fine - no problems - and then stopped indexing my Outlook files - about 2-3 weeks ago ( ). I am on XP Pro x64 edition - MS Outlook 2003 (SP2) - and WDS 3.0 ( which I believe is required for x64). I have noticed the following errors in my application event log: Event Type: Error Event Source: Windows Search Service Event Category: Gatherer Event ID: 3102 User: N/A Description: The per-user filter pool for session 0 could not be added. Details: The operation being requested was not performed because the user has not logged on to the network. The specified service does not exist. (0x800704dd) and then... Event Type: Error Event Source: Windows Search Service Event Category: Gatherer Event ID: 3083 User: N/ ...Show All
.NET Development Configuration Manager
Hello All. Alright, let me start with just a little background. I'm working on a Windows Forms client application, and in order to make it a single-instance application, I've got a named Mutex, which I naturally want to encrypt to prevent a DoS attack from any assorted twerps. Now, for whatever reason, the folks at MS don't seem to see the need for a tool like aspnet_regiis.exe for client apps, so already this has gone from trivial to tedious. So, I worked up a little code to encrypt the config section in question, and I kept getting null reference exceptions. Well, I backed up a bit and the problem seems to be referencing the "appname.exe.config" file. Here's my code: using System; using System.Collec ...Show All
SharePoint Products and Technologies Creating a new SPSite: ValidateFormDigest() Failing
Hi Background first: We're upgrading our intranet from Sharepoint 2k3 to MOSS. Part of the functionality that we had was to allow the creation of a new site within the Sharepoint Portal from within MCRM via a web service call to a home built Web Service that was built against the Microsoft.SharePoint namespace and invoked that object model to create the new site. Since the upgrade to MOSS I've recreated the web service as a .NET 2.0 implementation built against the latest version of the Microsoft.SharePoint assembly. We lookup the VirtualServer that we're interested in and pull its' sites collection. We then attempt to use the SPSiteCollection.Add(String, String ...Show All
Visual Studio Team System Can't get SuppressMessage to work with FxCop
Hi It seems to me as if FxCop do not respect SuppressMessage on class members am I missing something here e.g. public ref class X { [SuppressMessage("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields", MessageId = "y")] Y^ y; }; I wonder if it's becorse no cli entry is generated for such a member, and if so where should I put the SuppressMessage instead I tried the following but that failed too [SuppressMessage("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields", MessageId = "X.y")] public ref class X { Y^ y; }; br Jens It do not work, also without the message id. Here my C# sample: class X { [ SuppressMessage ( "Microsoft.Performance" , "CA1823:AvoidUnus ...Show All
Visual C++ How the AutoPointer works in VC.
Need more information about how the compiler & runtime deals with auto pointer in vc. Thanks in advance -Partha Nice findings SvenC, Thanks many, Now the dependent interface comes into picture with your suggestion, most like bugs on otherside of my court. More informative reply, Thanks again. Will inform you once the issue colsed. Warm regards, ...Show All
