julio666's Q&A profile
Visual Studio Express Editions VB6 to Express query
Hi, Visual Studio Express has upgraded a VB6 app for me with the following error: >> Name 'controlcm1' is not declared. File Form1.vb Line 13 Column 9 Project 1. Here is the code for Form1.vb Option Strict Off Option Explicit On Imports Axcm11a Imports Microsoft Imports Project1 Imports System Friend Class Form1 Inherits System.Windows.Forms.Form Private Sub ButClrCM11_Click( ByVal eventSender As System.Object, ByVal eventArgs As System.EventArgs) Handles ButClrCM11.Click controlcm1.ClearMem() End Sub Private Sub Command2_Click( ByVal eventSende ...Show All
Visual C++ About DLL entry points
Hi! I recently had to write a simple C++ DLL (I had only been familiar with normal Windows applications and .NET DLLs). There is something, which caught my interest: Is every DLL required to have an entry point, like DllMain or are there some exceptions You are correct: DllMain exists primarily to initialize any global data in the DLL - if there is no global data in the DLL and you do not need to perform any other operations on DLL load or DLL unload then you can do without a DllMain function. ...Show All
.NET Development Expecting Preamble error
Hi, I have a web service that talks to a process using remoting. At first I used http and it worked fine. I then changed the configuration files to use TCP, but I got a this error message: Tcp channel protocol violation: expecting preamble I made sure that all the URLs start by tcp://. I cant find what's causing this problem. Does it have something to do with using the Web.config file to set the remoting client configuration settings Thanks for the help. Mustapha, since you mentioned a Web.config I assume you're using IIS. IIS can only host HTTP remoting objects, and will be unable to connect to ...Show All
Visual C# Unable to map a network drive using C#
I tried to map a network drive using the code (at the end of this post) but I got a "Login Failed 1326" which occur because of a bad username or password. I'm sure that the username and password are correct, I tried to map a drive using the Windows (Tools->Map Drive) and it worked successfully using the same username and password. The shared drive is on a linux machine using SAMBA. The Code: using System.Runtime.InteropServices; public struct NETRESOURCEA { public int dwScope; public int dwType; public int dwDisplayType; public int dwUsage; [ MarshalAs (UnmanagedType.LPStr)] public string lpLoc ...Show All
Visual C# HighestBitSet in C#
I'm trying to optimize a a method that returns the highest bit set in a bit pattern, my current code is : private int HighestBitSet( int bitPattern) { return (Convert.ToString(bitPattern, 2).Length - 1) - Convert.ToString(bitPattern, 2).IndexOf("1"); } I know that in c++ i can use an assembler intruction to do this but in c# is not possible so, how can i optimize this Tnks I have already found an answer in this site tnks anyway... ...Show All
Smart Device Development Unable to connect to remote server when calling web service
Can anyone provide any insights into this problem: I'm calling a simple web service from my pocket pc application remotely and the error coming back is "Unable to connect to the remote server." The web service just returns a simple "hello" string. It's configured to allow anonymous authentication. I verified that I can browse to other websites like espn.com or cnn.com so I do have internet connection. I can even browse to my web service .asmx file in I.E. and see the method names of my web service. However, when I connect my pocket pc to my computer that is connected to my work network, the web service call is succ ...Show All
Windows Live Developer Forums OT - MSN Messenger scripting from a web page
Hello all, first i apologize for this off-topic, but i've not been able to find a more proper forum... There seem to be methods to, say, add a contact to the messenger via script from a web page. I've found few samples around, but have not been able to find a reference for it. Might anyone please provide a link to some (official) reference for scripting the messenger from a web page Thanks a lot in advance. -LV LV, The ability to start a conversation, add a contact, or launch an activity application from a URL was added in MSN Messenger 7.5 which shipped in August. I don't believe we have documented the MSN: protocol yet. H ...Show All
Visual Basic Reading from file errors...
Hi everybody.. This is the problem I have: I have a .txt archive which contains lines for configuring labels, buttons, and other controls of my form. This archive is written in spanish and some letters have an accent. I can read wit no problem the line, but when I assign the value I get (string type) to the text property of the control, the accent letters did not appear at all. Now I tried configuring my regional settings, before I had English (USA) and I tried changing it to Spanish (Mexico) but the accent letters now appear as an " ". In my VB6 app, this was no problem. Checking my .txt is saved with an ANSI encoding. So ...Show All
Visual Studio Express Editions no option for C# in visual Web Developer
When I create a new web site, it is auytomatically created in VB no screen to choose type of component or to select c# as the language. Any ideas will be greatly appreciated. BTW this is Beta 2 Try the answer from the following post: http://forums.microsoft.com/msdn/ShowPost.aspx PostID=3811 ...Show All
SQL Server Cannot generate SSI Context
New install of SQL Server 2005 (x64) Standard after uninstalling previous version SQL Server (x86) Standard. After installation, client connections are receiving "Cannot generate SSI Context" error messages. TCP/IP Integrated Authentication is being used. Kerboros authentication is failing when SQLService is running under a domain account and works when running under local system account by reverting back to NTLM authentication. How do I get the Server to revert to NTLM authentication when running under a domain account so that the error will go away Mike First, here are great blogs for troubleshooting this proble ...Show All
Visual Studio Team System Customize Team Builds wizard
Hi, There’s a way to customize Team Builds wizard I know there’s a way to customize the default build type, also, I can override some targets from the TFSBuild.proj file. But, there’s a way to customize the default Team Builds wizard Thanks in advance, shmulik. Hi Khushboo, I meant that my ideal customization was to change the wizard himself, The thing is that for example in my company we are using the team builds to build on versions that are based on labeled and not every time we are using the latest version, so it's not very comfortable to edit alwa ...Show All
Visual C++ MSVCRTD.lib(crtexew.obj) : error LNK2019: unresolved external symbol _WinMain@16 referenced in function _WinMainCRTStartup
Hi Justin! i am completely new to this and have to learn the language fairly rapidly, got myself a decent book, but when i try and compile a simple hello world program i get the error: Linking... MSVCRTD.lib(crtexew.obj) : error LNK2019: unresolved external symbol _WinMain@16 referenced in function _WinMainCRTStartup Debug\dont know.exe : fatal error LNK1120: 1 unresolved externals Build log was saved at "file://c:\Documents and Settings\Justin Pyfrom\My Documents\Visual Studio 2005\Projects\dont know\dont know\Debug\BuildLog.h ...Show All
SQL Server SQL Configuration holding connections to DS
Hello All, I have about 160 packages in my system, all using about 20 shared datasources. When changing one of the datasource's connection (changing the server name), I need to open every one of my packages and press OK to allow the remapping to the new server. (this is something I don't understand: wasn't this the meaning of using a share datasource in the first place what's the advantages in that case ) So, I have heard about Package configuration, and how it supposed to support all of this, But I don't understand something: The configuration is set to a certain package. If I have 2 packages, using the same two (of four) Datasources ...Show All
Visual Studio Express Editions Retrieve data from Excel and store it in Access through VB
Hi, I am using VB express 2005 to create an interface to retrieve data from Excel spreadsheet then store it into my Access database. I am able to retrieve data and store it in a dataset then display it in a dataGridView. But I am not sure how can i store the data into an Access database. I tried to connect VB to Access by opening a connection and then create a table in Access. I created a DataGridView and bind it to this table. I can do normal insertion, deletion to the table. But when i change the content of the dataGridView to my spreadsheet by writing some code then do the normal save as usual, the content in the ...Show All
Visual Basic Database question....
In my VB 6 app I used an access DB with 77 tables each representing a different company products. They are ALL the same format just different company names for each table. In VS2005 I would like to use just one table and have about 3000 records with the column MFG. Obvioulsy this makes for quick response from the program. Here's the problem.... In the old app I populated a combobox with each table so the user could quickly navigate to the MFG of choice. In VS2005 I am using the BindingNav but there are 3000 plus records to sort through....HOW in heavens name can I populate a combo box with ONE record from each MFG name and keep its ...Show All
