|
|
I am doing a bulk copy of several text files into an SQL database. All of the files but one copy completely. The one that doesn't copy all of the records contains more than 126,000 records. It only copies 100,000 records though. Does anyone know of any reason this may happen? I have my data parser set to parse up to 1 million records.
|
|
|
|
|
hi all,
l made a class and i want to export its values stored in members data to an excel file
can any one give me a beginning
my class like
<br />
static class Export<br />
{<br />
private static ArrayList arrivalRate = new ArrayList();<br />
private static ArrayList customersNo = new ArrayList();<br />
}<br />
and i wanna to make member data is the header of the row and the values in the arraylist are in squence in the adjacent cells.
thanx
Generator
|
|
|
|
|
I'm posting in C# because that is my language of choice but the question is really about VS2005 plus I'm gettin desperate.
My VS2005 does not store resources, of any kind, in the assembly. I believe it is a configuration problem but I haven't been able to find where change the behavior. The second part is that it used to work. I have repaired, uninstalled, reinstalled, etc.
Example 1.
1. creae new project with one form.
2 add Binding navigator to the form (should add images resources automatically)
3 compile and execute. receive error!
Any Ideas?
|
|
|
|
|
greybeard wrote: receive error!
What error?
|
|
|
|
|
Ed.Poore wrote:
greybeard wrote:
receive error!
What error?
I agree. Be a little more verbose and we might be able to help
"You will see a delete button on each of your posts. Press it." - Colin Angus Mackay
|
|
|
|
|
Basically says resource for the file/culture not found...makes sure resources are properly embedded... This was a hairpuller and MS was no help. Turns out that NO resources were being places in the assembly. None, no strings, images, etc... NOTHING. It just quit processing resources. Not quite true, the diagnostics log said it processed them, just didn't save them. Took forever to find the problem and a long time to correct. Hope noone else has this problem, It's a real hair puller and head scratcher.
Thanks for the reply.
|
|
|
|
|
Is there a way to indicate the completion of mouse wheel event in C#.net 2.0 windows application?
|
|
|
|
|
Hi guys
what is wrong her keep getting this error:
" Parameterized Query '(@type nvarchar(4000))select price from titles where type=@type' expects parameter @type, which was not supplied "
I think it's something to do with my QueryString, which seems to be null, but I don't know how to fix it - any suggestions please....
Here is a code snippet:
strType = Request.QueryString["type"]; //using pubs database
strSelect = "select price from titles where type=@type";
cmdTitles = new SqlCommand( strSelect, conPubs );
cmdTitles.Parameters.Add("@type", strType);
conPubs.Open();
rptTitles.DataSource = cmdTitles.ExecuteReader();
rptTitles.DataBind();
conPubs.Close();
All the best
Al
|
|
|
|
|
ComCoderCsharp wrote: strType = Request.QueryString["type"];
Make sure this is returning something.
The best way to accelerate a Macintosh is at 9.8m/sec² - Marcus Dolengo
|
|
|
|
|
Hi!
I want to create setup of my project using InstallShield. i am using InstallShield 6.1 for this. I found this [^] article on using InstallShield but first of all it is for VC++ not C#, and i am not sure will it will work same for C# or not.
Secondly it does not specify how to verify license key during installation and how to insert a registry key?
Please help me in this regard, thanks, in advance...
Regards,
Affan Ahmad Toor
..................
QUAIDIAN FOR ONCE, QUAIDIAN FOR EVER!
|
|
|
|
|
I would look for some kind of InstallShield forum or call their support if they have one. You probably won't find answers for this question here.
The best way to accelerate a Macintosh is at 9.8m/sec² - Marcus Dolengo
|
|
|
|
|
How get MotherBoared serial no. from c# program?
|
|
|
|
|
|
My question is primarily about audio but hooking is also involved.
I am trying to figure out if I manage to get a hook set up to catch messages (I *think* messages heading to audio playback fall under a WH_GETMESSAGE Hook type) will fall into the same format since I'm going to have to be able to filter out the messages I'm not concerned with.
I, also, assume it's not possible to 'hook' to the default output sound device itself since it's a hardware device but shouldn't there be some kind of software handling the playback I can hook into (thus hooking 1 process instead of a list of processes) or is each program calling sound output the last software in line for me to hook to for that?
Note: I'm not looking at using global hooking here as I want to avoid angering World of Warcraft's Warden program.
|
|
|
|
|
What are you trying to do with World of Warcraft itself then?
The best way to accelerate a Macintosh is at 9.8m/sec² - Marcus Dolengo
|
|
|
|
|
This is a personal project I came up with due to my distaste for Ventrillo and TeamSpeak. I dislike them because if I'm using them, I have to turn my volume down/off on other applications so I can hear the chat clearly. Then I get irritated that my music/in game sound is down when everyone is quiet.
I can't turn it back up then because if someone started talking I'd miss parts of it as I'd have to go back and turn the sound back down/off on those applications.
My goal with this project is to:
>Detect when Ventrillo / TeamSpeak / (user selected app perhaps?) is using the microphone or outputting sound.
>When the above is true (either by shared memory space or rigging some file writes/reads), other application sound (specific applications, most likely) gets any sound they output turned down so as not to interfere with chat.
>After Vent/TS/etc have finished using the mic/outputting sound (and after an appropriate wait for possible responses, etc) the sound of the applications is no longer 'hushed' (back to normal).
The point of using local-hooking rather than system-hooking is to avoid WoW's warden as it doesn't like things to interfere with WoW and I'd rather stay on the safe side. To have WoW's sound act similarly, I was planning on a simple file out so that a custom UI can read the file to tell when to moderate WoW's Master Sound down (assuming WoW's subset of LUA will allow for it).
|
|
|
|
|
I am not sure exactly how the World of Warcraft warden works but I doubt it can look for a global hook. I am sure it looks in a similar way virus scanners work. That being they just look for common ways a program gets something done, i.e. looking for things speeders do.
My suggestion would be to try a global hook and see if the warden complains.
The best way to accelerate a Macintosh is at 9.8m/sec² - Marcus Dolengo
|
|
|
|
|
World of Warcraft aside, a global hook is best way to do it, I agree.
I'll send an email out to Blizzard and try to get their support team to let me know if global hooks will cause an issue while I work on designing this.
Either way I implement this, I'll still need to figure out exactly what message type I'm trying to catch. I think once I have the right message and catch it, it shouldn't be a big deal to change the volume level in it but I won't be sure until I get the right message figured out and take it apart.
Any suggestions on that or some way to look at what calls programs use to output audio? I was thinking if I had some kind of tool to look at all those sorts of calls, I could just watch what winamp puts out when I hit play.
Note: I have also been looking at IAT Hooking and since I don't completely understand hooking yet I may be mixing ideas that I shouldn't. Feel free to correct me.
|
|
|
|
|
I have a xml file that looks something like this
<?xml version="1.0" encoding="ISO-8859-1"?>
<?xml-stylesheet href="../../../../formatmall/dtd_dok_1_4.xsl" type="text/XSL"?>
<?Fm Condition Comment Red SINGLE_UNDERLINE show?>
<?Fm Condition Inserted Red CHANGEBAR show?>
<datamodul xmlns:xlink = "http://www.w3.org/1999/xlink" xmlns:num = "http://www2.mil.se/namespaces/num" xmlns:punkt = "http://www2.mil.se/namespaces/punkt" xmlns:ill = "http://www2.mil.se/namespaces/ill" xmlns:term = "http://www2.mil.se/namespaces/term" xmlns:tab = "http://www2.mil.se/namespaces/tab" xmlns:alt = "http://www2.mil.se/namespaces/alt" xmlns:obs = "http://www2.mil.se/namespaces/obs" xmlns:anm = "http://www2.mil.se/namespaces/anm" xmlns:kommentar = "http://www2.mil.se/namespaces/kommentar">
<niv1>
<rubrik>something</rubrik>
<niv2>
<rubrik>something else</rubrik>
<text>some text</text>
<niv3>
<rubrik>something more</rubrik>
<text>bla bla</text>
</niv3>
</niv2>
<niv2>
<rubrik>more headlines</rubrik>
<text>some simple text...</text>
<lista-num>
<lista-elem>
<lista-text>(1) list
</lista-text>
</lista-elem>
</lista-num>
</niv2>
</niv1>
</datamodul>
I've tried to rename some elements using XmlDocument() but with no success.
So if anyone can tell me how it is done, I would be glad.
Elements to rename:
niv1, niv2 and niv3
And ofcourse, save the file with changes.
|
|
|
|
|
Hi!
I had this problem too and after a lot of effort i figured out that using DOM, there isn't any way you can rename an element directly. May be i am wrong but at least i couldn't find its solution.
I changed the structure of my xml file and used a generic name for xml element and stored the data as attribute...e.g.
<element1 attr="niv1">
<element2 attr="niv2">
</element2>
</element1>
This way you can easily modify the attributes of element.
Another possible way (if you don't want to change the structure of xml file) might be by storing the innerXml of node to be renamed, then delete that node and create new node with modified name and assign innerXml to that new node.
Hope that helps, if i have made any mistake please correct me. I would love to know if there is any other way of renaming an element.
Thanks,
Regards,
Affan Ahmad Toor
..................
QUAIDIAN FOR ONCE, QUAIDIAN FOR EVER!
|
|
|
|
|
I cant change the structure of my xml files, because I have over 4000 of them.
What I tried is to copy a node if it is named for example niv1, delete it, and create a new node with the new name and add the content that I copied erlier.
But I dont get it to work.
|
|
|
|
|
Phrone wrote: What I tried is to copy a node if it is named for example niv1, delete it, and create a new node with the new name and add the content that I copied erlier.
But I dont get it to work.
That's what I'd think is way to do it, what problem do you have with this approach?
"Throughout human history, we have been dependent on machines to survive. Fate, it seems, is not without a sense of irony. " - Morpheus
"Real men use mspaint for writing code and notepad for designing graphics." - Anna-Jayne Metcalfe
|
|
|
|
|
dnh wrote: Phrone wrote:
What I tried is to copy a node if it is named for example niv1, delete it, and create a new node with the new name and add the content that I copied erlier.
But I dont get it to work.
That's what I'd think is way to do it, what problem do you have with this approach?
I'm not sure what I do wrong. And I've tried to find code samples to see how other done, but with no luck.
MSDN doesn't have much information about it either.
|
|
|
|
|
try doing this:
string nodeData = "";
XmlDocument xmlDoc = new XmlDocument();
XmlNode root = xmlDoc.DocumentElement();
XmlNodeList nodeList = root.GetElementByTagName("nav1");
XmlNode node = nodeList[0];
if(node!=null)
{
nodeData = node.InnerXml;
root.RemoveChild(node);
//Create new node with modified name
XmlElement newNode = xmlDoc.CreateElement("New nav1");
newNode.InnerXml = nodeData;
root.AppendChild(newNode);
}
hope that helps...
..................
QUAIDIAN FOR ONCE, QUAIDIAN FOR EVER!
|
|
|
|