NickNotYet's Q&A profile
Visual Basic New projects won't run, no errror messages
I'm using Visual Basic under Visual Studio 2005. I have older projects that work just fine. But now if I build a new project, the executable doesn't display the first form, and terminates immediately. There are no logs showing anything is wrong. I don't see anything useful in the Application Event log viewer. I get "Build Successful" when I click Build from under Projects. If I hit F5 or the green arrow under debug, I get something similar. The screen flickers and shows "Ready". I'm expecting Form1 to show. I'm carefully comparing new projects to old ones that work, but don't see any obvious differences. This is driving me up a freaking wall. I've got the same problem. When I at ...Show All
Visual Basic Mail Slots for message passing between threads
Hello all hope you can help i need to read and write to mail slots or find another way to message between a main application and a connection handler thread but i am struggling to find information on this. here is my declaration of the mailslots. 'Mail Slot Declaration Private Declare Auto Function CreateMailslot Lib "kernel32" ( _ ByVal lpName As String , _ ByVal nMaxMessageSize As Integer , _ ByVal lReadTimeout As Integer ) As IntPtr Private Declare Function GetMailslotInfo Lib "kernel32" ( _ ByVal hMailslot As IntPtr, _ ByRef lpMaxMessageSize As Integer , _ ByRef lpNextSize As Integer , _ ByRef lpMessageCount As Integer , _ ByRef lpRea ...Show All
Visual Studio Express Editions Adding Record to Database Via Windows Form
I'm hit another problem I've got these textboxes and when I click a button, I want to add the text into a record in database ON A WEBSITE which I do have FTP access If anybody could point me in the right way or get me a lil snippet - That would would great lol sorry ahmedilyas if you answer this one again but I'm hitting lots of problems today New area of programing for me ... Normally use Asp well you should be fine. there is no need to encrypt anything really for this matter. It depends really. Say if the database required a username/password. you would build up the connectionstring in parts (file location, username, password) username and password would be encrypted and say, stored in your application settings file. ...Show All
SQL Server 4 errors when using SSIS scripting component
Hi guys, I got these errors when writing a scripting component. Anyone encounteer these errors before Warning 1 The dependency 'EnvDTE' could not be found. Warning 2 The dependency 'Microsoft.SqlServer.VSAHosting' could not be found. Warning 3 The dependency 'Microsoft.SqlServer.DtsMsg' could not be found. Warning 4 The dependency 'Microsoft.SqlServer.VSAHostingDT' could not be found. -Daren Excellent response. I had this error a while back and could not find a clear solution. Thanks for defining the solution so definitively. ...Show All
SQL Server DAY() not working with 'Left Join'???
I have two tables. Days (1-31) and dates (random dates) If I have a query that is Select Day, Date From days LEFT JOIN dates ON days.Day = DAY(dates.date) Order By Day, Date The left join will not return all the days in days just the ones that join with dates. It returns as if I am doing and 'Inner join'. What do I need to do different Thanks. So I get to playing around with your example and descovered some stuff I didn't know about left joins. My query has touble when I add a Where clause on it to filter dates to a certain range. The differents querys are below in case someone else needs help. Thanks. NOT WORKING Select a . Day , b . date From days a LEFT ...Show All
Visual Studio Express Editions IDE Issue
I'm coding in unmanaged code. And the intellisense is bad for unmanaged c++. I have to close the project and open it up over and over to get the intellisense to work for like 2 times then it dies ;_;. How can I fix this issue Kiryn wrote: I wish there was a fix for this ;_; Could you provide more information on your working environment like the vc version, windows version and everything you think might be helpful for others to better understand your situation. thanks bite ...Show All
Visual Basic How to connect to current active Excel Workbook from standalone Visual Basic program?
I have an application that needs to verify if Excel is running ( doing this through System.Management.ManagementObject iteration) and if it is, to connect to the currently active workbook and fetch the list of worksheets. I cannot for the life of me figure out how NOT to say Dim xlApp As Microsoft.Office.Interop.Excel.Application xlApp = New Microsoft.Office.Interop.Excel.Application xlApp.Visible = False xlBook = xlApp.Workbooks.Open(xxx) but rather something like xlBook = Microsoft.Office.Interop.Excel.Application.ActiveWorkbook (I know that is wrong but that's the best I could think of). Can you please show me how to set xlBook to the currently active Excel Workbook But if you want just ...Show All
Windows Forms designer error on multi-language forms
If there is an ImageList control on multi-lang form, and its collection is changed (e.g. by adding new icons), then changing Language property raises designer error: "Specified argument was out of the range of valid values. Parameter name: 'X' is not a valid value for 'index'. at System.Windows.Forms.Design.ImageListDesigner.OriginalImageCollection.get_Item(Int32 index) at System.Windows.Forms.Design.ImageListDesigner.OriginalImageCollection.SetKeyName(Int32 index, String name)" This is caused by difference between xxx.Designer.cs file and old xxxx.LL.resx file for other language used. Maybe the solution should be image list stream to be automatically transferred to all localized resource files. A temporary workaround is ...Show All
Visual Basic Traversing Arrays
I have a text box that contains a Vendor's name, First and last eg; Randy Thomas. I have another text box that I would like to populate with the first initial of the first name and the first 3 characters of the last name to create a vendor code. I am not sure how to create and traverse an array to do this. can anyone help Thanks in advance. tattoo try this out for size Private Sub Button1_Click ( ByVal sender As Object , ByVal e As System . EventArgs ) Handles Button1 . Click For x As Integer = 0 To Me . TextBox1 . Text . Length - 1 If x = 0 Then Me . TextBox2 . Text = Me . TextBox1 . Text . Substring (0, 1) Else If Char . ...Show All
.NET Development OpenFileDialog Bug?
Hi all, I am not so sure if it is a bug, or it's me-the-bug... The following code works OpenFileDialog dlgFile = new OpenFileDialog(); dlgFile.Title = "Select a report file"; dlgFile.RestoreDirectory = true; dlgFile.AddExtension = false; dlgFile.DefaultExt = "rdlc"; dlgFile.Filter = "Local Report File(*.rdlc)|*.rdlc"; If I change the last line to dlgFile.Filter = "Local Report File(*.rdlc)|*.rdlc | Remote Report File(*.rdl)|*.rld"; I would have a dialog that I can select either *.RDLC or RDL file type. However, the files are not listed on the dialog's body. It only gives me a list of sub-folder. Is this a ... bug, or it is my code th ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Camera Help
Hey all im trying to get my camera to work properly i want it positioned behind the model at a certain distance which i have done, but when i turn my avatar i want my camera to turn with it at a proportional distance . right now i can get the camera to turn and follow my avatar from a fixed position easy just put the model position in cameratarget, I can also get the camera to stay behind the avatar at a fixed position but when it follows the model it doesn't turn with it. can i get some help here i can't figure out how to get the code to work so it follows the model and also turns with it so its always behind below is my code minus some of the unneeded code.. public class Game1 : Microsoft.Xna.Framework.Game { GraphicsDeviceMana ...Show All
Software Development for Windows Vista Process-centric Services in a SOA architecture (supported by wwf)
Hi I’m reading the book Enterprise SOA - Best practices. I’m also playing around with WWF and this has lead to at least one question so far. The book describes one kind of services in a SOA as Process-Centric Service which encapsulates the business logic for an organisation. The service often maintains state for their clients to simplify the local client logic. Ok. I can clearly see how WWF can support the logic and state in a local application (WWF directly integrated in the client application). But would it be reasonable to wrap the process-centric service into a Web service (we are talking SOA) and describe a complex Business Logic here which would be composed of a high amount of steps which often would require the interaction ...Show All
Visual C++ convert type String^ or char * to double vc++ 2005
hello re: convert type String^ or char * to double vc++ 2005 how about use istringstream #include <iostream> #include <sstream> #include <string> #include <stdexcept> inline double convertToDouble( const std::string& s) { std::istringstream i(s); double x; if ( !(i >> x) ) std::cout << "Bad conversion" << std::endl; // throw something out here return x; } int main(void ) { std::string s( "5.5226802238731452E+000" ); double x = convertToDouble(s); std::cout << x << std::endl; return 0; } Bite ...Show All
Visual Basic retrieving domain user info
Hi, I just successfully created a login box that validates users via Active Directory/their network login. However, I would like to retrieve the full name of the user and put it on a form and dialog box. Here's what I mean: The user's login Username is JohSmi (Username is first 3 letters of first name and first 3 letters of last name) Full name: John Smith (As entered in Active Directory) When the user logs in, a label on the second form changes to John Smith. How can I accomplish this Ooops dim result as searchresult = ds.findone Remember to change the relevant domain information and username Richard ...Show All
Smart Device Development Add Today Item
I have been try to figure out how to add a Today Item which is in quotes and nothing seens to work. Any help would be greatly appreciated. Here is the code that I have been trying to get working. Microsoft.Win32.Registry.LocalMachine.CreateSubKey( "\Software\Microsoft\Windows\Today\Items\'Wireless'" ) Microsoft.Win32.Registry.SetValue( "HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\Today\Items\'Wireless'" , "DLL" , "netui.dll" , Microsoft.Win32.RegistryValueKind.String) Microsoft.Win32.Registry.SetValue( "HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\Today\Items\'Wireless'" , "Order" , 1, Microsoft.Win32.RegistryValueKind.DWord) Microsoft.Win32.Registry.SetValue( "HK ...Show All
