CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: zhshqzyc

Page 1 of 14 1 2 3 4

Search: Search took 0.02 seconds.

  1. Replies
    1
    Views
    4,603

    Using semaphore with task

    We know that semaphore limits the number of threads that can access a resource or pool of resources concurrently.
    For this example at...
  2. Replies
    3
    Views
    902

    [RESOLVED] Get substrings from a string

    Hello, suppose I have a string that has length n.
    Now if m<n is given, I want to find all substrings which have a fix length m.
    Is there a quick way?

    Thanks for share your code.
  3. Replies
    2
    Views
    716

    Re: Regular expression pattern

    I mean
    string pattern = key + "[^\\d]+.*";
    or

    string pattern = key + @"[^\\d]+.*";
    or

    string pattern = key + @"[^\d]+.*";
    I want to match a pattern that starts with "something", contains...
  4. Replies
    2
    Views
    716

    Regular expression pattern

    Hi, I want to write a pattern like this, plase correct it.


    string key = "something";
    string pattern = key + "[^\\d]+.*";
    return Regex.IsMatch(string_value, pattern);

    I don't know how to add...
  5. Re: Object reference not set to an instance of an object.

    It was defined as

    misValue = System.Reflection.Missing.Value;
    I still got error even I redifine it in the scope.
  6. [RESOLVED] Object reference not set to an instance of an object.

    Hi, I am stuck here. The code is pretty straightforward.

    string str1=null;
    string str2=null;
    int rCnt = 0;

    for (rCnt = 2; rCnt <= nRows;...
  7. Replies
    0
    Views
    498

    Using SelectMany

    Hi, I have a list xxx which likes


    List<string> xxx = new List<string>();
    // add elements to xxx.
    xxx ={a,b,c,t} //xxx is very long thousands of elements
    // read a matrix from a text file....
  8. [RESOLVED] Object reference not set to an instance of an object"

    StreamReader sr1 = new StreamReader(name1);
    Dictionary<string, string> dictmap = new Dictionary<string, string>();
    Dictionary<int, string>[] dictped = new...
  9. Retrieving Data from database using TableAdapter, storing it in String/Array

    Here is a little code but not completed.
    Hope somebody give me a hint. I want to sort the result.


    Object RReturn = new Object();
    DataSet1TableAdapters.droughtDataTableAdapter k1 =...
  10. Re: "Unable to find an entry point named 'GetForegroundwindow' in DLL 'User32.dll'."

    Here used Intptr.
    http://www.pinvoke.net/default.aspx/user32.setactivewindow
    Which one is right?
  11. [RESOLVED] "Unable to find an entry point named 'GetForegroundwindow' in DLL 'User32.dll'."

    Hello,

    I don't know why I got the error.

    EntryPointNotFoundException was unhandled by user code
    Thanks for help.

    Private Declare Function SetForegroundwindow Lib "User32" (ByVal hwnd As...
  12. Re: Run-time error '713' Class not registered.

    Can you tell me how to check its existance in registry?

    Suppose the component is named PControl.ocx.
  13. Re: Run-time error '713' Class not registered.

    It's a control compontent.
    OS WIN xp sp3.
    I use regv32 to regist it.

    It is in a user folder.
  14. [RESOLVED] Run-time error '713' Class not registered.

    Hello,

    I have a vb6 application.
    After I start or build the program I always get this error

    Run-time error '713' Class not registered.
    Even I register this ocx component, it is still there.
    ...
  15. Replies
    4
    Views
    1,187

    Re: Define a ListBox items text.

    The question is that the list items are already existing.
    I want to replace or modifiy them with new values.

    How to?
  16. Replies
    4
    Views
    1,187

    [RESOLVED] Define a ListBox items text.

    Hi,

    Suppose I have a listbox aaa which has two items.
    How to define the text for each item?


    My code is incorrect but not sure why?


    aaa.ItemData(0)="Yes"
  17. Replies
    2
    Views
    799

    [RESOLVED] "Timeout waiting for ACK..."

    Hello,

    I am using vb6. I got an error "Timeout waiting for ACK..." while start my app.
    After some time(hours) the error disappeared. A new error occuried.

    "File Not Found...
  18. Replies
    1
    Views
    775

    [RESOLVED] tlb or dll

    Hello,

    If I open the project's proterty. Some reference types are dll, the other are tlb.
    But if I look at the path, both types files exist with the same name.
    Why?

    e.g.

    xxx.dll and...
  19. Replies
    3
    Views
    4,389

    Re: [RESOLVED] vbp reference

    Understand it mostly except two points.
    1)If a dll is updated, is the old one still in the registry?

    I mean if the current one is
    ...
  20. Replies
    3
    Views
    4,389

    [RESOLVED] vbp reference

    Hello,

    Suppose I open a vbp file with notepad, then

    Reference=*\G{BF119BF5-25E9-4807-9E24-F35B7E94449C}#c.3#0#..\Utils\utils.dll#Utils-Common

    Can you please explain to me a little bit?
    ...
  21. Replies
    1
    Views
    745

    Re: Invalid outside procedure

    Ignore it.
    The question becomes that I want to define a variable

    Public CERR_OVERAMT As String
    CERR_OVERAMT = GetMessage(LDest_UserDisplay, MSGGRP_MESSAGEBOX, MSGID_MESSAGEBOX_CERR_OVERAMT,...
  22. Replies
    1
    Views
    745

    [RESOLVED] Invalid outside procedure

    Hello,

    I got an error on the first parameter LDest_UserDisplay highlighted in the following function while compile.

    Private CERR_OVERAMT As String
    CERR_OVERAMT = GetMessage(LDest_UserDisplay,...
  23. Replies
    1
    Views
    807

    Fatal error occurred

    Hi,
    After I start the vb6 program, a message box jumps out.


    FATAL ERROR OCCURRED! THE SYSTEM WILL SHUTDOWN!
    System.InvalidOperationException: The Key 'xxxxx' does not exist in the
    appSettings...
  24. Replies
    6
    Views
    1,127

    Re: Add Reference failed

    I am still confused save vbps.
    Can you please tell me when I close the project, all the files are highlighted.
    Does it mean that all files highlighted will be saved?
    If I click one file then click...
  25. Replies
    6
    Views
    1,127

    Re: Add Reference failed

    I am still confused save vbps.
    Can you please tell me when I close the project, all the files are highlighted.
    Does it mean that all files highlighted will be saved?
    If I click one file then click...
Results 1 to 25 of 328
Page 1 of 14 1 2 3 4





Click Here to Expand Forum to Full Width

Featured