|
http://support.microsoft.com/default.aspx?scid=kb;en-us;307548
|
|
|
|
|
thx its helpfull steps.........,,
mircee:->
|
|
|
|
|
Hi!
how to display large numbers in exponential form on graph axis ?
bye,
Asha
hi!
|
|
|
|
|
Using string.Format to format your number however you like, then you can draw the string on your graph.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
when can i get the ORCA for .net 1.1
and the article about it ?
Thanks
MHF
|
|
|
|
|
|
Hello All, I am new to C# and database programming, following are details,
I have a table in SQL which is transferred to oracle (by an user application). The table name remains the same.
My application should populate the SQL and oracle table rows in 2 seperate datagrids in such a way that it shows the differing rows in a different colour or Just display the differing rows. The difference would be because of if row is missing or if manually tables are tampered by user after table gets transferred from SQL to Oracle.
Currently I am populating the table datas in a datagrid ( using dataset and dataadapter in ADO.NET), and comparing each row from the source data row with all rows in the target datarow. This works fine for limited number of rows, when the table size is huge with tonnes of rows, the method used is practically not feasible or may take hours of time to do the comparison.
It would be great, any suggestions or possible solutions can be posted.
|
|
|
|
|
As you have two different databases, you can't do it anywhere except in your code. You may find it easier to build a query that asks db1 to return records that are not in a list you provide, but I'm not sure if that would be faster or not. In other words, do one query on oracle, for the list. From that list, build queries to ask what records are missing, are extra, or have changed. That's the only way I can see to have the DB work for you, because the only way it can work is if you bring the data from one DB into the other, otherwise they have no connection.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
Hello,
Can anyone help me, how can i browse the all messages in the queue? i have found several examples to get or put the messages, but about the browsing i haven't.
The folloing example is browse the first messages, but i would like to see the all messages...
<br />
<br />
MQQueueManager mqQMgr;<br />
MQQueue mqQueue;<br />
MQMessage mqMsg = new MQMessage();<br />
MQGetMessageOptions mqGetMsgOpts = new MQGetMessageOptions();<br />
mqQMgr = new MQQueueManager(qmName);<br />
mqQueue = mqQMgr.AccessQueue(qName,<br />
MQC.MQOO_BROWSE | MQC.MQGMO_LOGICAL_ORDER
+ MQC.MQOO_FAIL_IF_QUIESCING);<br />
mqGetMsgOpts.Options = MQC.MQGMO_WAIT | MQC.MQGMO_BROWSE_FIRST;<br />
mqQueue.Get(mqMsg, mqGetMsgOpts);<br />
MessageBox.Show(mqMsg.ReadString(mqMsg.TotalMessageLength));<br />
Thanx,
Gee
|
|
|
|
|
Replace MQC.MQGMO_BROWSE_FIRST with MQC.MQGMO_BROWSE_NEXT and call Get in a loop until it fails - it will throw a harmless exception with a reason code of MQRC_NO_MSG_AVAILABLE when there are no more messages to browse.
I would also suggest that you use MQGMO_NO_WAIT rather than MQGMO_WAIT so that you don't have to wait until a message appears on the queue when you browse an empty queue.
Example code using home-brewed helper methods:
public bool browseMessages(out ArrayList messages, string queue)
{
messages = new ArrayList();
MQQueueManager mqQM = null;
MQQueue mqQ = null;
try
{
if (queue == null || queue.Length == 0)
throw new Exception("Queue name required");
connectManager(out mqQM);
connectQueue(mqQM, queue, MQC.MQOO_FAIL_IF_QUIESCING + MQC.MQOO_BROWSE, out mqQ);
MQGetMessageOptions mqGMO = new MQGetMessageOptions();
mqGMO.Options = MQC.MQGMO_FAIL_IF_QUIESCING + MQC.MQGMO_NO_WAIT + MQC.MQGMO_BROWSE_NEXT;
mqGMO.MatchOptions = MQC.MQMO_NONE;
MQMessage mqMsg = new MQMessage();
while (true)
{
mqQ.Get(mqMsg, mqGMO);
messages.Add(mqMsg.ReadString(mqMsg.MessageLength));
}
}
catch (MQException mqex)
{
if (mqex.ReasonCode == MQC.MQRC_NO_MSG_AVAILABLE)
{
return true;
}
else
throwMQException(mqex);
}
finally
{
if (mqQ != null)
mqQ.Close();
if (mqQM != null)
mqQM.Disconnect();
}
return false;
}
Gavin
|
|
|
|
|
Hi,
I am working on context menus using IContextMenu interface in COM, have just created a .net wrapper and added some context menus, can any body help me regarding addition of a seperator above and below the menu items in windows...
Thanks in advance,
Regards.
|
|
|
|
|
hi,
i have read in some article regarding onlayout method of the controls,that takes some event argument ......bla... bla
what is the use of onlayout method? and when it should be called ?and how it should be called?
|
|
|
|
|
Hi..
I use C#.NET..
I pass 4 - 5 command line arguments to my appln.
for eg:
/c:class /d:define /o:outputfile Infile
for the first 3 arguments i can find them based on delimiters("/c:" "/d:" "/o:")
But how can i find the last argument(also it can be anywhere in the command line arguments )
One thing is sure the "InFile" argument will not have any delimiters.
Plz provide me the code to do this..Plz Help!!!
|
|
|
|
|
The space is always a delimiter, unless it's in quotes. So, you can build a regex to delimit based on spaces outside quotes.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
I am not able to do with that..Is there any other possible way???
|
|
|
|
|
Why can't you ?
There's no other way I can see, unless you're sure there will never be quotes, then the space is a delimiter.
If you're unwilling to use a regex ( and if you don't know how, you should learn ), then you can always string mash your way to a solution, it's just nicer to do it properly.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
it will definetly have quotes bcoz its the input file name i should pass..
So it will definetly have quotes..say eg: "d:\c plus\some.h"..so this string should always be specified in quotes..
|
|
|
|
|
OK, then your choices are regex or string mashing ( that is, counting spaces and quotes manually in code )
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
Hi,
I try to import a simple text file that have many rows with a special row format
Example: |item|123|any items|4.50|
When I read the lines in from the text file it removes the '|' tag.
Why is that??
Example Code:
StreamReader importFile = File.OpenText(txtPath.Text);
txtLines.Text = txtLines.Text + importFile.ReadLine();
I know I'm missing something simple.
Thanks for any help.
|
|
|
|
|
Perhaps | is a delimiter for the stream reader ? Is it reading the whole line every time, or up to the | ?
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
I'm reading a whole line into a temp string and use the '|' tag to divide the string into column values.
When I read the whole string from the file the '|' tag is missing. So, I cannot divide the string up.
thanx
|
|
|
|
|
Hi all I am trying to convert code that being written in C++ to C# and I found that structure that using a property in C++ called "Bit Fields" and I didn't found it in C#, is there any way to convert it to C#
thx all
typedef struct _tagCPB {
unsigned short DialMode :1;
unsigned short LineToPBX :1;
unsigned short TriggerMode :1;
unsigned short DetectRoaringRemoteHangUp :1;
unsigned short DetectBusyRemoteHangUp :1;
unsigned short DetectRemoteHangUpWhenRecording :1;
unsigned short DetectRemoteHangUpAlways :1;
unsigned short StopOperationRemoteHangUp :1;
unsigned short MonitorDTMF :1;
unsigned short MonitorEnergy :1;
unsigned short DetectVoltReverseRemoteHangUp :1;
unsigned short DetectSilentWhenRecording :1;
unsigned short LearnPulse :1;
unsigned short MonitorPulse :1;
unsigned short MonitorTone :1;
unsigned short :1;
unsigned short OffHookDelay;
unsigned short OnHookDelay;
unsigned short FlashTime;
unsigned short PulseMake;
unsigned short PulseBreak;
unsigned short PulsePostDigitPause;
unsigned short ToneDuration;
unsigned short InterTonePause;
unsigned char OutsideLineAccess;
unsigned char RingsToAnswer;
unsigned short WaitAnswerDuration;
unsigned short InterDigitPause;
unsigned short NoSignalTimeOut;
unsigned short MaxSilence;
unsigned short MaxRoarDuration;
char PlayGain;
char RecordGain;
unsigned char PlayMode;
unsigned char RecordMode;
unsigned char OffThreshold;
} typeCPB;
|
|
|
|
|
|
Hi,
I am trying to fill a datatable with data for all records that have not been actioned. When they have been actioned a date is entered into the "actioned" field. Until it has been actioned, the field is empty.
How do I pass an empty/isNull parameter in the following:
this.correspondenceTableAdapter.FillBy(myclubDataSet.Correspondence, XXX );
where the XXX represents an empty DateTime field in the database.
Glen Harvy
|
|
|
|
|
DBNull.Value ?
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|