Coroebus's Q&A profile
Visual C# Losing value after calling method for use with another
I am trying to figure out why JAAAlbum.ProductID is null when passed to my AddNewProductRelationship_Album_Track method in my loop http: / / www. webfound. net/ forum_ posts/ addproduct. txt Basicaly what's happening is the AddNewProduct is called for the album and JAAlbum product is created then values are saved to the database with the following lines: JAAlbum.Save(1, TransactionAbstraction.GetTransaction()) ; TransactionAbstraction.CommitTransaction (); That's all fine and dandy but the problem is when it hits the if statement again, it then goes to add the track: AddNewProduct(xl, row, host, fileExtWAV, "Track", filePathSourceWAV, fileName, moveFile, sstore); Problem is line 131. I get an error saying JAAlbum.Produ ...Show All
Visual Basic List values in enumeration
Hi, Does anyone know of a way in which I can list all of the values in an enumeration I want to use the enumeration values to populate a listbox. Here is my enumeration: Public Enum Processes ForceVolume PeakAdhesion Slope End Enum Regards, Bob Yes with option strict on (which you should have on) you would have to make a couple of explicit conversions... Public Enum Processes ForceVolume PeakAdhesion Slope End Enum Private Sub Button1_Click ( ByVal sender As System .Object, ByVal e As System . EventArgs ) Handles Button1 . Click Dim EnumValues () As Integer = CType ( [Enum] . GetValues ( GetType ( Processes ) ...Show All
Visual C# Partial Specialization of Generics
I want to do something like this: using StringDictionary<T> = System.Collections.Generic.SortedDictionary<System.String, T>; How do I accomplish that If C# 2.0 doesn't syntactically support the notion, what is the next best equivalent It looks like . Probably we should suggest to add some functionality to this forums like: if someone is editing a post and somebody else adds a post warn the person who is editing... ...Show All
.NET Development Debugging Web Service with database connection saved in Application session state variable
I'm debugging a web service app that has a database connection stored in an application session state variable. When I finish a debugging session and then start a new one the database connection object still exists in the application variable from the previous debug session. Is there a way I can clean up objects stored in application variables before I start a new debugging session Thanks I think I know what's going on. I don't have exception handling in place yet. So when the app bombs the connection is still open (no try/catch/finally code yet to close the connection!!!). Thus when I start another debug session the previous DB connection is still open and I try to open it again, a no no. ...Show All
Visual Studio what is the difference between .sln and .vbproj?
hi, what is the difference between .sln and .vbproj many thx hunb hi, i have one more question after i published the program and installed the .exe file at the Computer-B, how can i update the exe file if i have any change of the program or i need to re-install the program every time i change the program as i can just find the shortcut of the program at computer-B many thx hunb ...Show All
SQL Server [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified
trying to install sql server2005 on a windows 2003 server box. getting msg below at the sql server . i looked at other posts on trying to uninstall SQL Native Access Client and norton antivirus. i could never find the snac on the add - remove programs and this server does not have a virus protection program yet. here's the history of the installs on the server: wanted to test a 2005 upgrade so: 1) installed sql server 2000 then sp4 then restored some databases to it - all OK 2) tried to upgrade to sql 2005 but ran into problems and left it at that. had a disk drive crash on the d drive so lost the installs but not the operating system when the drive was replaced, left alone for a while then wanted to test a straig ...Show All
.NET Development Is it possible to compare strong name evidences from a calling assembly with the current assembly?
I want to protect my public methods in my "crypto" dll from being called from other assemblies than the ones I have signed with our companies strong name key. In .Net 2.0 the "StrongNameIdentityPermissionAttribute" does not protect against fully trusted code. I wrote this method that compares the public key in the strong name Evidence from the calling assembly with the public key in the strong name Evidence from this current assembly. Will this work Disadvantages private static bool ValidateAssemblyEvidence( Assembly callingAssembly) { StrongName myAssStrongName = GetStrongNameEvidence( Assembly .GetAssembly( typeof ( Crypto ))); StrongName callingAssStrongName = GetStrongNameEvidence(callingAssem ...Show All
Smart Device Development Need CF SMS help
Hi I have a hp iPAQ hx2790 and I have wriien an app the needs to send a sms via my Nokia phone. I have used Microsoft.WindowsMobile.PocketOutlook to integrate the contacts into my app, but now I need some help on sending the sms. I have done the code for sending the sms that I found in MSDN but how do I connect to my phone via bluetooth, and how do I send the phone the message and tell the phone to send the message. I have done some research on this but has not found anything that can help me so far. Please help me, this is for my final year project. Thanks, DD. Since this device is not a SmartPhone or PPC Phone edition, there's no Microsoft phone stack on it. Probably at best you can use NETCF’s serial class to send AT ...Show All
.NET Development version question
There is a note in the help description in a few places that reads "Note: this namespace, class, or member is supported only in version 1.1 of the .Net Framework." What does this mean Does it mean that it was not supported in the earlier version but is supported in version 1.1 and will be in the future Or does it mean that it is supported in only the version 1.1, not in earlier versions and will not be supported in future versions The one that prompted my question is the "HasRows" property of the DataReader. I have noticed the note in other places as well but can't now remember where. The issue is important because I don't want to write code that is guaranteed to fail in future versions. ...Show All
Software Development for Windows Vista c# VFW capVideoStreamCallback(...) (DIB) lpVHdr To Bitmap
Hi, (Update - previous post stated capSetCallbackOnFrame(..) this was an error sorry for any confusion, the call back being used is capVideoStreamCallback(...)) Im using the old VFW (Video for windows) within a c# application to facilitate video capture, partially throught the excellent ezVidCap control, (activeX wrapper for VFW capture) and due to some unfortunate limitations the win32 API. It is required that the preview runs, whilst recording and that a frame may be captured from the video stream at any time, ie recording, or not recording. ezVidCap will not allow or facilitate frame capture whilst recording but does make available the call back capVideoStreamCallback (). During recording I am using the callback function capSetCal ...Show All
Visual Studio project templates disappeared
From one day to another my project templates disappeared. I can only create a Webapplication, but no WindowsApplication. I can't add a WindowForm to a project, only inherited forms. What can I do I reinstalled Visual Studio and followed the instructions of the Thread "Visual Basic Templates disappeared" but it didn't help. Hi Ed, Thank you very much for your quick answer. I don't know why, but after deinstalling Visual Studio Partner ....(I can't remind what it exactly was) my new installation works. I'm very happy. Thank you. Sincerely, Silke ...Show All
Software Development for Windows Vista Designer re-hosting and custom activities inside xoml-> NullReferenceException during GetRootActivity()
Currently I'm trying to re-host the workflow designer, who's not ;) But I'm failling with each mdsn code sample when I try to load a custom xoml workflow. I end up with a NullReferenceException during the GetRootActivity() method or I see an empy diagram showing nothing but emptyness ;( I know that there is TypeLoader service available, I've added my assembly to this typeloader before the WorkflowLoader tries to load (create instance of) the workflow and it's custom written activities. I would like to load a xoml based workflow with custom activites inside the rehosted designer, what am I missing Thanks Hi Kushal, That's not possible due to copyright rules in my company. But I think that would lead to nowhere. It seem ...Show All
.NET Development General question......about differece btw language and technology
Hi All, I have one general question............sorry to put in this forum................. I want to know the difference between language and technology........... eg .net is a technology and C# is a language....... what to say for HTML so I want a line that differentiate btw these two terms......... This sounds like a semantic issue. Let's say we accept the definition of technology as application of scientific/engineering knowlege. With that, a programming language can be a technology. SmallTalk can be called an implementation of OO software development technology. .NET framework can be called an implementation of VM technology, but then .NET also has a central programming language of ...Show All
Visual C++ running an executable program from the code
i would like to know how to run an executable file from the command line in C++ for example i am writing a code in C++ and i need to execute a program inside my master program . i will be so happy if you send me an example mahmud See http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=667530&SiteID=1 ...Show All
Visual C++ how to read Japanese characters from a file
how to read a japanese characters from a file using Visual basic 6. I am using the following code, but it is failed to read the kanji characters. <Dim oStream As New ADODB.Stream Dim iNo As Integer oStream.Open oStream.Type = adTypeText oStream.Charset = "ISO-2022-JP" oStream.LoadFromFile (App.path & "\Temp\item.dat") oStream.Flush Text1.Text = oStream.ReadText Set oStream = Nothing> please help me... This is a C++ language forum. You should either ask that question in the VB forums, or in one of the newsgroups. See http://forums.microsoft.com/MSDN/default.aspx ForumGroupID=10&SiteID=1 . ...Show All
