Daikoku's Q&A profile
Visual Basic How can I create and use a .dll file to be associated with a form?
Hi, I wanted to create a dll file (project) that will be used in the same solution of a windows form. I'm going to use one dll file to scan for any missing file and (or) directories inside the applications path, I was trying to use application.startuppath, but it is not accessible inside a dll file. How can I pass the value from the form to the dll Unless there is some other way, that is the first thing I thought of. I don't even know how to call the dll, I tried adding it as a reference to the form project, but it doesn't work, please explain in depth of what to do, I have never created or worked with any .dll files previously. Thanks. Start with a solution that has your Windows Forms project. Rig ...Show All
SQL Server When to DROP the temporary table?
Hello, In a stored procedure on SQL Server 7, I create a temptable, populate it. create a second temp table, and no longer need the first one, and DROP the 1st temptable. the second temptable is joined with another table and the results are RETURNed. Do I DROP the second temptable just before the RETURN, after it Does it matter I'm curious, and trying to learn more about using stored procedures. Thanks Why do you use temp tables do you need to share data with some other code else you can use in-memory tables that are managed by the engine something like that: declare @tmptable table(s_rownum int, s_cmdid int) ; with pal as ( select * from ( select row_number() over (order ...Show All
Visual Basic how to insert(add) image into access database from vb
Hi, i) I have table with ole object field datatype. I want to insert image into access database from visualbasic. I try to insert image.picture.But it store as long integer data. Please help me How to insert image from vb into access database. ii) I store image path in text field in access database. How can I add this image path into image in crystal report. Please, Help me to find solution above question. Thanks in advance Bye, Rashe --- Insert Image in Ms-Access ---- objConnection = New OleDbConnection(objConnectionString) objConnection.Open Dim content As Byte() = ReadBitmap2ByteArray(ImagePath) SqlQuery = "Update ImgTable Set Img= Where ImgTableID = 1" Dim objInsert As OleDbCommand = New OleDbCommand(SqlQ ...Show All
SQL Server Installing ASP.NET 2.0
Hello, I am wondering if anyone has any suggestions regarding the requirement of SQL Express of ASP.NET 2.0 and that this may "break" existing applications that require ASP.NET 1.1 and will not run on ASP.NET 2.0 Thanks in advance! Tim Sorry for the text as I just copied and pasted them in my Powerpoint slides. The documentations are for the following: Compatibility Overview/Testing Compatibility/Breaking Change Documentation: http://msdn.microsoft.com/library/default.asp url=/library/en-us/dnnetdep/html/netfxcompat.asp ...Show All
Visual Studio Express Editions How Can i send text message to pager from vc++
i would like to send text message to pager by using vc++ application. if any body knows about this please let me know. Thanks Hello Re question: How Can i send text message to pager from vc++ As stated previously, please do not cross post and please select the correct Forum/newsgroup for your questions. This is a newsgroup type question http://msdn.microsoft.com/newsgroups . OTP Thanks Damien ...Show All
Visual Studio Express Editions media time calculation
Hi need the maths calculation for this: Private Sub Button1_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click If OpenFileDialog1.ShowDialog Then mplayer1.URL = OpenFileDialog1.FileName Timer1.Enabled = True Private Sub Timer1_Tick( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick Label1.Text = mplayer1.currentMedia.duration But It displays the length as 345.232 for example. how would I format this as 3:00 for example almost basically globally declare a DateTime object, create the timer tick event and keep adding 1 to the datetime object... public class ...Show All
Visual C++ Error LNK2019 Unresolved External Symbol wWinMainCRTStartup
I saw the previous posting relating to LNK2019, but the solutions did not work for me. I am migrating a eVC project to VS 2005. I have two LNK2019 errors. Here is the description of the first error: description: error LNK2019: unresolved external symbol wWinMain referenced in function wWinMainCRTStartup filename: corelibc.lib I have the linker entry point set to: wWinMainCRTStartup subsystem set to: Windows(/SUBSYSTEM:WINDOWS) The second error is different. description: error LNK2019: unresolved external symbol SHRecognizeGesture referenced in function "protected: void __cdecl CGestureEdit::OnLButtonDown(unsigned int,class CPoint)" ( OnLButtonDown@CGestureEdit@@IAAXIVCPoint@ ...Show All
Visual Studio "Version not found" using SS GET!
Hello there and thank you in advance for any help. I've read some other threads about similar problems but my issue seems to be unique. We had a VSS 6.0d database and we migrated to VSS 2005 (server and client). The database import went fine and all has been working quite well overall. I create a sidestream of several projects by sharing them over but when we use our automated build script which calls "ss get" on those projects, it appears that files that havn't been changed since before the migration are coming back with "Version not found". Using SS Explorer works fine but the command line utility fails. Any help would be much appreciated! Regards, Phil Hi, Was there any resolution to this issue I have the sa ...Show All
SQL Server SSIS and Teradata
Does anyone know if/how SSIS works with Teradata Search http://forums.microsoft.com/MSDN/Search/Search.aspx words=Teradata&localechoice=9&SiteID=1&searchscope=forumscope&ForumID=80 Yes. ...Show All
Visual Basic Copy data to notepad
I want to copy names of toolstrip items to a notepad file which will be created automatically in drive(c:\), how can i do that By the way, i should be able to read them again by using my program and reput them in the toolstrip. Thx Zooz, According to your demand, I recommend you to use the ToolStripTextBox.Copy method to copy the contents to the clipboard. Dim ToolstripItem as ToolStripTextBox ToolstripItem.Copy ...Show All
SQL Server SQLCMD error
hi i am using the SQL Server 2005(Express Ed). I am at the client end, i mean i have installed the client tools on the workstation & server is over the network(local). when i try to execute the command at dos prompt C:\>SQLCMD it throws Missing Data Source Name Usage: SQLCMD -d dsn -u user -p password -i filename Why but if i execute the same on the server its working fine. now i wan to execute a set of sql statment from the client (at dos prompt) how can I do this if i do like this C:\>sqlcmd -d dm2006 -u sa -p sysadm -i ss.txt (that is with dsn,username,password, filename) it ok but when i use the SQL Query as C:\>sqlcmd -d dm2006 -u sa -p sysadm -q "SELECT * FROM MISC ...Show All
SQL Server SSIS interview questions.
Could some of the expert(s) list interview questions that might come up when applying for ETL/SSIS developer I or II positions. Thanks Jamie, Why is that Is it because they would not know vb.net or misuse variables in terms of scope or you are just kidding... :-) Thanks ...Show All
Visual Studio Team System MS Project and different team foundation server names for work item tasks
Hi, im using team foundation server in MS Project 2003 as a source for work tasks. Name of TFS was "TEST" and now im change name of TFS to "TEST2". How can i change name of TFS in MS Project document You cannot change the project name of a bound document. Alternatively, you can create new document from the mpp, connect to the new project and get all the tasks to the new mpp. Hope it helps, ...Show All
Visual C# Create a sharepoint 2007 audience
Hi, Been trying to find an answer for this for a couple of days now so any help would be most welcome. Basically im trying to create a new audience in Sharepoint 2007 using the code example given in the sdk. using (SPSite site = new SPSite("http:// servername ")) { ServerContext context = ServerContext.GetContext(site); AudienceManager audManager = new AudienceManager(context); AudienceCollection ac = audManager. Audiences ; Audience a = null; string sAudName = "Customer Connection"; string sDescription = "Members of the Customer Connection v-team"; try { a = ac. Create (sAudName, sDescription); } catch ...Show All
Visual Studio Express Editions combobox problem
Hi. I want to assign values from one column in database to combobox. My database has two columns. That's the code that I'm using: ComboBox1.DataSource = MaintenanceDatabaseDataSet.MachineTable.Machine_nameColumn However it generates error: Complex DataBinding accepts as a data source either an IList or an IListSource. what should I do ok it works but after I update/insert data into database. at the beginning I went to machinetable->show table data and I entered data there. I don't know why it doesn't want to read data from there But when I'm using code Dim datasave As New MaintenanceDatabaseDataSetTableAdapters.MaintenanceTableTableAdapter datasave.insert(......) th ...Show All
