Click here to Skip to main content
15,896,557 members
Home / Discussions / C#
   

C#

 
GeneralRe: Mute other applications Pin
el_stupey26-Apr-14 1:46
el_stupey26-Apr-14 1:46 
Questionhow to edit in crystal report Pin
Er Aslam Khan23-Apr-14 22:33
Er Aslam Khan23-Apr-14 22:33 
AnswerRe: how to edit in crystal report PinPopular
Chris Quinn23-Apr-14 22:59
Chris Quinn23-Apr-14 22:59 
AnswerRe: how to edit in crystal report Pin
Keith Barrow24-Apr-14 3:09
professionalKeith Barrow24-Apr-14 3:09 
AnswerRe: how to edit in crystal report Pin
thatraja24-Apr-14 21:09
professionalthatraja24-Apr-14 21:09 
AnswerRe: how to edit in crystal report Pin
Mycroft Holmes24-Apr-14 21:57
professionalMycroft Holmes24-Apr-14 21:57 
AnswerRe: how to edit in crystal report Pin
V.25-Apr-14 2:00
professionalV.25-Apr-14 2:00 
QuestionWndProc related issue in win apps c# Pin
Tridip Bhattacharjee23-Apr-14 20:55
professionalTridip Bhattacharjee23-Apr-14 20:55 
i have developed a small win apps which is suppose to capture skype conversation. my main concern is that i have define the
C#
WndProc()
here is the code a bit
C#
protected override void WndProc(ref Message m)
{
    Boolean handled = false;
    if (m.Msg == NativeCalls.APIAttach && (uint) m.LParam == NativeCalls.SKYPECONTROLAPI_ATTACH_SUCCESS)
    {
        // Get the current handle to the Skype window
        NativeCalls.HWND_BROADCAST = m.WParam;
        handled = true;
        m.Result = new IntPtr(1);
    }

    // Skype sends our program messages using WM_COPYDATA. the data is in lParam
    if (m.Msg == NativeCalls.WM_COPYDATA && m.WParam == NativeCalls.HWND_BROADCAST)
    {
        COPYDATASTRUCT data = (COPYDATASTRUCT)Marshal.PtrToStructure(m.LParam, typeof(COPYDATASTRUCT));
        StatusTextBox.Items.Add(data.lpData + Environment.NewLine);

        // Check for connection
        //if (data.lpData.IndexOf("CONNSTATUS ONLINE") > -1)
        // ConnectButton.IsEnabled = false;

        // Check for calls
        IsCallInProgress(data.lpData);
        handled = true;
        m.Result = new IntPtr(1);
    }

    m.Result = IntPtr.Zero;
    if (handled) DefWndProc(ref m); else base.WndProc(ref m);
    //base.WndProc(ref m);
}


but controls is not coming in this
C#
if (m.Msg == NativeCalls.WM_COPYDATA && m.WParam == NativeCalls.HWND_BROADCAST)
block that is main problem.

SQL
here i attach the link of my win application and that is https://onedrive.live.com/#cid=C4A6F16F34D7540A&id=C4A6F16F34D7540A!126 just download the skypecalltest and run it.

before run my apps just login to skype and then run my apps where you put a phone no and click on call button then you can see the controls is not coming repeatedly to the second if block.

so what i need to change in my code as a result control will come to second if block repeatedly .

in the same link there is another same kind of apps which is based on wpf and that is working where wndproc is calling repeatedly. if possible check that code too and guide me what i am missing or making mistake. thanks

tbhattacharjee

QuestionRe: WndProc related issue in win apps c# Pin
Eddy Vluggen23-Apr-14 21:46
professionalEddy Vluggen23-Apr-14 21:46 
AnswerRe: WndProc related issue in win apps c# Pin
Tridip Bhattacharjee24-Apr-14 0:25
professionalTridip Bhattacharjee24-Apr-14 0:25 
GeneralRe: WndProc related issue in win apps c# Pin
Eddy Vluggen24-Apr-14 1:20
professionalEddy Vluggen24-Apr-14 1:20 
GeneralRe: WndProc related issue in win apps c# Pin
Tridip Bhattacharjee24-Apr-14 1:43
professionalTridip Bhattacharjee24-Apr-14 1:43 
GeneralRe: WndProc related issue in win apps c# Pin
Eddy Vluggen24-Apr-14 6:22
professionalEddy Vluggen24-Apr-14 6:22 
GeneralRe: WndProc related issue in win apps c# Pin
Tridip Bhattacharjee24-Apr-14 20:49
professionalTridip Bhattacharjee24-Apr-14 20:49 
GeneralRe: WndProc related issue in win apps c# Pin
Eddy Vluggen25-Apr-14 3:27
professionalEddy Vluggen25-Apr-14 3:27 
GeneralRe: WndProc related issue in win apps c# Pin
Tridip Bhattacharjee27-Apr-14 20:42
professionalTridip Bhattacharjee27-Apr-14 20:42 
QuestionC# DATAGRIDVIEW CELL EDIT Pin
mubasit23-Apr-14 19:58
mubasit23-Apr-14 19:58 
AnswerRe: C# DATAGRIDVIEW CELL EDIT Pin
Eddy Vluggen23-Apr-14 21:52
professionalEddy Vluggen23-Apr-14 21:52 
QuestionGetting value of SHDocVw.InternetExplorer Pin
Kaveh Yazdi Nezhad23-Apr-14 17:34
Kaveh Yazdi Nezhad23-Apr-14 17:34 
AnswerRe: Getting value of SHDocVw.InternetExplorer Pin
Bernhard Hiller23-Apr-14 22:18
Bernhard Hiller23-Apr-14 22:18 
AnswerRe: Getting value of SHDocVw.InternetExplorer Pin
Kaveh Yazdi Nezhad26-Apr-14 6:23
Kaveh Yazdi Nezhad26-Apr-14 6:23 
QuestionHow to Collect Microsoft Remote Connectivity Analyzer Results Pin
lesponce23-Apr-14 15:51
lesponce23-Apr-14 15:51 
AnswerRe: How to Collect Microsoft Remote Connectivity Analyzer Results Pin
Eddy Vluggen23-Apr-14 22:43
professionalEddy Vluggen23-Apr-14 22:43 
QuestionHow to add Outlook toolbar under the subject line in C# add-in? Pin
Artem Moroz23-Apr-14 12:46
Artem Moroz23-Apr-14 12:46 
AnswerRe: How to add Outlook toolbar under the subject line in C# add-in? Pin
Eddy Vluggen23-Apr-14 22:45
professionalEddy Vluggen23-Apr-14 22:45 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.