Shomik's Q&A profile
SQL Server Foreach Loop and distributed files
Hi - I'm new to SSIS and am having problems figuring out how to do the following. I need to load data from flat files into SQLserver 2005 and have created the data flows ok, but my data files are *not* located in a single directory so I cannot use the foreach file enumerator option in the foreach loop container collection. Please correct me if I'm wrong My approach has been to execute a SQLcommand to get the filenames from another database table and to use the foreach ADO enumerator option and mapping the returned filenames to a project scoped variable (data type object since it is a rowset). My problem comes when I edit the properties of the connection manager to try to use that variable for the connectionstring property in the e ...Show All
SQL Server Suppress blank lines problem
I am having difficulty suppressing empty groups from rendering blank lines. For instance, take a simple left outer join to group detailed sales by region. The report has a regions group and the detail line. Every region that made no sales would print one blank line. If I add a subgroup between the region and the detail say to group by product within region then I get two blank lines for each no sale region. If I add another detail line then I get three blank lines etc. Has anyone else come across this and solved it Thanks. CSI, Maybe I am missing something but I have tried placing conditionals on the row level and even on every cell of a row but it only works when there is actually data in the row and ...Show All
Game Technologies: DirectX, XNA, XACT, etc. D3DXCompileShaderFromResource doubt
I want to use this D3DXCompileShaderFromResource API to compile my HLSL shaders. Somebody plz tell me how to add a shader as a resource inside VS2005. When i tried it shader compilation fails saying resource not available..plzzz help am stuck Hi, Do the following steps: 1) Make a .txt file with shader (Shader.hlsl for example); 2) Add the resource to your projects using the button 'Import...' (to show your file choose 'all files' as file types in the dialog box that appears). 3) When the IDE prompt for the Resource Type, it's fundamental that you insert the string 'RCDATA' (i.e. a binary resource). 4) Then to compile your shader use the following code: LPD3DXCONSTANTTABLE m_pTexture_ConstantTable = NU ...Show All
.NET Development Generic Classes... bah humbug.
I thought I was being slick as snot, but just when I go to use my clever design, it collapsed like a house of cards. It was defeated like a paper tiger. It was all bark an no bite. Here's my dilemma. I have a list box that I am adding objects to, and when an item in the listbox is clicked, I wanted the listitem object to call a sub that it's holding a pointer to (via a delegate). Well here's where it all went to hell in a handbasket... I get the generic ListItem class coded so that each instance can hold a delgate and when the generic ListItem is instantiated, that is when you tell it what type it is (int32, String, Double, or whatever). Well when I went to USE an instance of my object somewhere else in my program, I had to specify t ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Mesh.Clone is disposed with original
Problem: A Cloned Direct3D.Mesh object is being disposed when the Mesh it was cloned from is disposed. I'm using the 2006 Managed DirectX C# SDK. Here is the code: ...Show All
Visual C# VS2005 IDE freezes
I'm having an issue with VS2005 where when I try and save or when it tries to Save AutoRecovery information, the IDE completely freezes. I only just started having this problem, so I really don't know what the problem could be. Are there any suggestions / fixes for this issue With some searching through the forums, I have found other people that have similar problems, but no solution in sight! Any/all help would be greatly appreciated. No... But I have since reinstalled my development machine, and haven't noticed any problems since doing so... Unfortunately, that means I am completely clueless as to what might've been causing this problem. :( ...Show All
Software Development for Windows Vista Uninstall of our product pops-up a strange explorer.exe crash dialog
The product that I work on has a Wise based installer, and when we uninstall the product, you get a pop-up saying that explorer.exe crashed. There is no visual evidence of the main explorer.exe crashing, and the task manager does list a second explorer.exe process running. Our uninstall is removing some file types and mime types, and does an SHChangeNotify(SHCNE_ASSOCCHANGED), but nothing that looks like it should crash anything, let alone explorer.exe. The error is: Problem signature: Problem Event Name: APPCRASH Application Name: explorer.exe Application Version: 6.0.5744.16384 Application Timestamp: 45234a84 Fault Module Name: StackHash_0c47 Fault Module Version: 0.0.0.0 Fault Module Timestamp: ...Show All
.NET Development CLR and thread deadlocks
Hello, I'm hosting the CLR (.NET 2.0) in an unmanaged C++ app. The CLR is used for calling C# plugin functions through IDispatch. The C# plugins are COM visible classes and are created from the app main UI thread. They are mostly used for accessing the app through a COM primary interop assembly generated with TLBIMP.EXE. The interop between C# and the app is achieved through the default Microsoft COM wrappers. This is all working fine but I'm having a problem when the C# functions are called by the app from a worker thread. At this point the CLR attempts to interop with the app via the UI main thread which is causing a deadlock because that thread is locked while the worker thread is executing. From what I see in the call stack (b ...Show All
.NET Development writing a Telnet client with VB. NET
Hi, I am trying to write a simple telnet client using VB.NET with Visual Studio 2005. I am using System.Net.Sockets. But I cant make it work yet. What I need is: To automate some tasks on UNIX server. To achieve this, I need to login to unix (from within my app.) via telnet, and run some commands. T hats all. Anyone can help me with this Thanks Fede. I am having the same issue as well. I copied and pasted the prompt for "Username: " from the telnet window that I have, but it still does not work. Anyone have any ideas Thanks, Eric ...Show All
Visual C# Why can't an interface method be internal?
When I try to make a method in an interface internal I get a compile error. Why is this Thanks in advance, Per Rasmussen. Perrs : I understand now, sorry I had your question wrong. Yes, you are running into a "limitation" of the c# language (or possibly the CLR - but without investigation I suspect it's c#). Can't tell you a "fix", since it's just the way it is. The best work around I can suggest is exactly what cverdon suggested. internal interface ISomething { void Func(); } public class Aclass : ISomething { void ISomething.Func() { this .Func(); } internal void Func() { ...} } &nbs ...Show All
Visual Studio Express Editions How do I make the capacitance for the collections box in propertys for the listbox, much larger(approx. 15000 items)
Currently my listbox propertys for collection items in design mode, will hold 1,213 items I would like it to hold approx. 15,000-25,000 items... I understand that each character in visual basic uses 2 bytes per character. My computer runs a capacitance of 2.048 Gbytes of DDR Ram, 1.6 GHertz(FLOPS) CPU approx. 6 Gbyte Virtual Memory. How much virtual memory does my software VB 2005 run in design mode Does this conflict with my Ram/CPU I would like my listbox to hold 15,000 to 25,000 items in the collections propertys window You're taxing the limits of the form designer which such a large number of items. When I tried it, I hit the same limit and got a line of code in the Designer.vb file that ...Show All
Visual Studio 2008 (Pre-release) How change Binding path at run time?
Hi Currently i am working on databinding with database,i have small problem is that how do i bind my list box with column of database table which i dont know untill run time. In this piece of code i have to ComboBox,first conbobox contains all the tables name in the selected database and other combobox will contain the all column names depending upon the table selected.And i want to all the data of particular column in listbox.And i want to bind my datatemplate of listbox with the selected column name. This thread already has the answer: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=783770&SiteID=1 Sheva ...Show All
Visual Basic ListBox.Items.Add() doesn't work for me
Hey everyone, I'm trying to add data to a listbox, but I get a object reference error. Here is a exmaple of my code: The listbox is already on the form: listbox1.Items.Add("Test") listbox1.Items.add("test1") When I run this code, I get a object reference is set to null(System.NullReferenceException) Can anyone help thanks, Brandon M. Hunter when doing: lstBx = lstBXSC you are making lstBX equal to nothing again, since lstBXSC is nothing anyway. If you dragged another listbox and getting the same error, something is seriously wrong. feel free to email me the project and i will be sure to post back the solution. (email address in my profile) ...Show All
Visual Studio Express Editions commands
where do i go to learn about all the vb commands, as i read these posts i am learning about commands that m books dont tell me about. how can do somethhing if i dont know the commands. things like accept and so on thats what i am talking about, you say there isnt a book or web site i can goto to get an explanation about a comand, so are you saying if i want to expand my knowledge about the command accept or insert so i am more familiar as to what it does so i can use it better, i have to go to the forum because there is no book or web site. it that correct ...Show All
Visual Studio Express Editions ALT+F4
Is there a way to stop ALT+F4 working on a form If possible I would also like to stop CTRL+ALT+DEL working as well. Thankyou Jeremy6996, not the solution i was hoping for but it works fine. Thankyou to everyone for their input on this topic. I relalise that it may have seemed a bit odd to want to disable alt+f4, but if i were making some kind of application to prevent people using their computer as it should for malicious purposes i would not post in a public forum and besides i would have no idea how to execute such a task and i would not want to do it in the first place. I also realise that nobody knows the context in which the program will be used or how good my knowledge of vb is, so i see the cause for suspiscion. Howe ...Show All
