Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. Kirilla

    Capture Add and Delete printer event

    Hi. Thanks for your answer. I have also thought of it,but that is the thing I would not like to do. I would rather use hook or some ChangeNotification method. best regards, Kirilla
  2. Kirilla

    Capture Add and Delete printer event

    Hi. I've made a very simple application, which is enum installed printers using EnumPrinters API. But, I have no idea, how can I catch the Add and Delete printer events. I would like to reenumerate printers, if somebody adds or removes a printer. best regards, Kirilla
  3. Kirilla

    std::getline doesn't work

    Hi, Thank you. There was problem with other part of my code. I've tried your sample in a new simple console project and it was working. I had to modify the <string> header file and there is no extra line. see details at MSDN: BUG: getline Template Function Reads Extra Character Q240015 best...
  4. Kirilla

    std::getline doesn't work

    Hi, Thanks for your answer. I know the usage of getline, but I don't know, why it doesn't work. I've try to explain what is the problem. See the following code: ... string s1, s2; cout << &quot;Enter a sentence&quot;<<endl; getline(cin,s1,'\n'); getline(cin,s2,'\n'); cout << &quot;You...
  5. Kirilla

    std::getline doesn't work

    Hi, I've problem with the Standard Library's getline function. As I know, it requires 3 params: 1. an input stream 2. a string objet 3. a const char ... std::getline( cin, mystring, '\n'); ... I t doesn't work at me. When I run my code and I debug this line, after I stepped over mystring...
  6. Kirilla

    Create dialog in DLL from resource?

    Hi. Try the followiong: CDialog* pDlg; pDlg->Create(IDD_DLG); pDlg->ShowWindow(SW_SHOW); For more info read MSDN CDialog. best regards, Kirilla
  7. Kirilla

    Access XML doc from another domain

    Hi. Here is a part of my code, I hope it helps: ... var xmlHTTP=new ActiveXObject(&quot;MSXML2.ServerXMLHTTP&quot;); xmlHTTP.open(&quot;GET&quot;,&quot;http://www.myserver.con/my.xml&quot;,false); xmlHTTP.send(); while(xmlHTTP.readyState!=4) {} var xmlDoc=new...
  8. Kirilla

    Code seems perfect?

    Hi. The problem is starting after the first Y cycle. When X = 1 and Y = 999 then there is 999\0 is in the store buffer and 999EEEE999 in the reverse buffer. Because EEEE is not a number atoi translate only the number part of reverse or until \0 (NULL CHAR) The n ext step X = 2 and Y =1 then...
  9. Kirilla

    Code seems perfect?

    Hi. Try this: ... for(z=(len-1);z>=0;z--) { reverse[q] = store[z]; q++; } reverse[q] = '\0'; ... best regards, Kirilla
  10. Kirilla

    How to calculate Collision ?

    Hi. I've made a simple labyrinth. One labyrinth unit consist of 6 triangles ( 3 square - floor and 2 walls ). Now I can walk along on it, but I can walk through the walls. I've made an collosion detection algorithm, but I think it is not so good. (it doesn't like me) I've stored the floors...
  11. Kirilla

    Use structs/class in Dispatch interface methods

    Hi. I've a DLL, what I want to implement to my application. I'd like to pass user defined structures and get it back. As I know, Automation doesn't support it only the MIDL base types. I did it, but I don't know how safe it is. I made a simple struct to test it: typdef struct MyStruct {...
  12. Kirilla

    Set Object values through FRAMES

    Hi. Thanks for your help. I think I found ths solution for my problem. I should work rather Containers and PlaceHolders in .NET aspx instead of Frameset. best regards, Kirilla
  13. Kirilla

    Set Object values through FRAMES

    Hi. I have problems with setting values of objects through FRAMES. I'd like to know is there any easy way to do this. I have 2 aspx page(2 frames) in a third html page. I put a button on one of the aspx page and when it is clicked I'd like to write some text to a Label which is on the other...
  14. Kirilla

    Need help for ODBC connection

    Hi. here is a JavaScript source: .. var conn=Server.CreateObject(&quot;ADODB.Connection&quot;); var comm=Server.CreateObject(&quot;ADODB.Command&quot;); var rs=Server.CreateObject(&quot;ADODB.Recordset&quot;); addSQL=&quot;getProperties&quot;; ...
  15. Kirilla

    External variable

    Hi. I've a complicated question. I've table on my HTML page. This table come from XML and contains numbers. I've an input text box too. I'd like to paint to red that numbers in the table which are lower than the number I write in the text box(there is a button and when I push it something cheks...
  16. Kirilla

    Get the value of an Attribute in XSL

    Hi dianal. I also found the answer for my question. Thanks a lot for your answer. It was really helpfull. The WD-xsl namespace is supported by IE but the W3C recommendetion is XSL/Transform. best regards, Kirilla
  17. Kirilla

    Get the value of an Attribute in XSL

    Hi dianal. Thanks a lot for your answer. I know, there are other ways to solve this problem, but I'd like to learn some of these. I've read the w3school's tutorial and I saw this solution, but it didn't work: <xsl:element name=&quot;{@id}&quot;> As I know, brace is used to variables and param...
  18. Kirilla

    Get the value of an Attribute in XSL

    Hi. Could anybody help? I don't know, what XPath I should use to get the value of a node. Here are my XML and XSL source: Contacts.xml <?xml version=&quot;1.0&quot; ?> <?xml-stylesheet type=&quot;text/xsl&quot; href=&quot;alldata.xsl&quot;?> <contacts> <contact id=&quot;b&quot;>...
  19. Kirilla

    How to get rid of scrollbar in full-screen-popup!?!

    Hi. Sorry. I was wrong. As I saw, when I used fullscreen property it always put the vertical scrollbar to the screen. When I set the height and width params to the height and width of the screen and didn't use fullscreen property all of the scrollbars had been disappeared. I'm looking for this...
  20. Kirilla

    How to get rid of scrollbar in full-screen-popup!?!

    Hi. I've tried this and I worked. The scrollbars were disappeared. You shouldn't specify the width and height properties, give only the fullscreen param: <a href=&quot;#&quot; onClick=&quot;launchwin('newbord.htm','main','fullscreen=1'&quot;> regards, Kirilla

Part and Inventory Search

Back
Top